Skip to content

Commit

Permalink
another attempt at fixing deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes committed Oct 29, 2024
1 parent f10f748 commit e0a7907
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/Java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ jobs:
shell: bash
run: |
mkdir -p ~/.gnupg
echo "pinentry-mode loopback" > ~/.gnupg/gpg.conf
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ && "$GITHUB_REPOSITORY" = "duckdb/duckdb-java" ]] ; then
export XML='
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion scripts/jdbc_maven_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def exec(cmd):
shutil.copyfile(jar, os.path.join(results_dir, os.path.basename(jar)))

print("JARs created, uploading (this can take a while!)")
deploy_cmd_prefix = 'mvn gpg:sign-and-deploy-file -Durl=%s -DrepositoryId=ossrh' % deploy_url
deploy_cmd_prefix = 'mvn gpg:sign-and-deploy-file -DgpgArguments=--batch,--pinentry-mode,loopback -Durl=%s -DrepositoryId=ossrh' % deploy_url
exec("%s -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, binary_jar))
exec("%s -Dclassifier=sources -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, sources_jar))
exec("%s -Dclassifier=javadoc -DpomFile=%s -Dfile=%s" % (deploy_cmd_prefix, pom, javadoc_jar))
Expand Down

0 comments on commit e0a7907

Please sign in to comment.