We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa340f commit 1b78e0eCopy full SHA for 1b78e0e
.github/workflows/maven-publish.yml
@@ -25,6 +25,12 @@ jobs:
25
run: |
26
rm -rf ~/.gnupg
27
28
+ - name: Start gpg-agent
29
+ run: |
30
+ echo "Starting gpg-agent..."
31
+ gpgconf --launch gpg-agent
32
+ shell: bash
33
+
34
- name: Import GPG key
35
36
echo "$GPG_PRIVATE_KEY" | gpg --batch --yes --import
@@ -42,7 +48,7 @@ jobs:
42
48
run: echo "GPG_KEYNAME=${{ secrets.GPG_KEYNAME }}" >> $GITHUB_ENV
43
49
44
50
- name: Publish to Maven Central
45
- run: mvn --batch-mode deploy -P release -Dgpg.keyname=${{ env.GPG_KEYNAME }}
51
+ run: mvn --batch-mode deploy -P release -Dgpg.keyname=${{ env.GPG_KEYNAME }} -Dgpg.passphrase=${{ env.GPG_PASSPHRASE }}
46
52
env:
47
53
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
54
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
0 commit comments