File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 3030 needs : [ build_and_test ]
3131 name : Package and upload package to Maven Central
3232 runs-on : ubuntu-latest
33+ env :
34+ MAVEN_USERNAME : ${{ secrets.OSSRH_USER_TOKEN }}
35+ MAVEN_PASSWORD : ${{ secrets.OSSRH_PWD_TOKEN }}
36+ MAVEN_GPG_KEY : ${{ secrets.GPG_SIGNING_KEY }}
37+ MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PWD }}
38+
3339 steps :
3440 - uses : actions/checkout@v4
3541
4147 server-id : central
4248 server-username : MAVEN_USERNAME
4349 server-password : MAVEN_PASSWORD
44- gpg-private-key : ${{ secrets.GPG_SIGNING_KEY }}
50+ gpg-private-key : MAVEN_GPG_KEY
4551 gpg-passphrase : MAVEN_GPG_PASSPHRASE
4652
4753 - name : Package
5258 if : github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
5359 run : |
5460 mvn --no-transfer-progress --batch-mode deploy
55- env :
56- MAVEN_USERNAME : ${{ secrets.OSSRH_USER_TOKEN }}
57- MAVEN_PASSWORD : ${{ secrets.OSSRH_PWD_TOKEN }}
58- MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PWD }}
5961
6062 - name : Cache Jars
6163 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments