File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,23 @@ jobs:
1919 distribution : ' corretto'
2020 - id : install-secret-key
2121 name : Install gpg secret key
22+ env :
23+ GPG_PASSWORD_KEY : ${{ secrets.GPG_PASSWORD_KEY }}
2224 run : |
2325 cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
2426 gpg --list-secret-keys --keyid-format LONG
25- gpg --pinentry-mode loopback --passphrase "${{ secrets. GPG_PASSWORD_KEY }} " --sign README.md
27+ gpg --pinentry-mode loopback --passphrase "$GPG_PASSWORD_KEY" --sign README.md
2628 - id : publish-to-central
2729 name : Publish to Central Repository
2830 env :
2931 MAVEN_USERNAME : ${{ secrets.CENTRAL_MAVEN_USERNAME }}
3032 MAVEN_PASSWORD : ${{ secrets.CENTRAL_MAVEN_PASSWORD }}
33+ GPG_PASSWORD_KEY : ${{ secrets.GPG_PASSWORD_KEY }}
34+ GPG_KEY_NAME : ${{ secrets.GPG_KEY_NAME }}
3135 run : |
3236 mvn \
33- -Dgpg.keyname=${{ secrets.GPG_KEY_NAME }} \
34- -Dgpg.passphrase=${{ secrets.GPG_PASSWORD_KEY }} \
37+ -Dgpg.passphrase="$GPG_PASSWORD_KEY" \
38+ -Dgpg.keyname="$GPG_KEY_NAME" \
39+ -Dgpg.arguments="--pinentry-mode loopback" \
3540 -DskipTests \
3641 clean deploy
You can’t perform that action at this time.
0 commit comments