File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,14 +34,15 @@ jobs:
3434 - uses : actions/checkout@v4
3535
3636 - name : Setup Java
37- uses : actions/setup-java@v1.4.4
37+ uses : actions/setup-java@v4
3838 with :
39+ distribution : temurin
3940 java-version : 11
40- server-id : ossrh
41- server-username : MAVEN_USERNAME
42- server-password : MAVEN_PASSWORD
41+ server-id : central
42+ server-username : ${{ secrets.OSSRH_USER_TOKEN }}
43+ server-password : ${{ secrets.OSSRH_PWD_TOKEN }}
4344 gpg-private-key : ${{ secrets.GPG_SIGNING_KEY }}
44- gpg-passphrase : MAVEN_GPG_PASSPHRASE
45+ gpg-passphrase : ${{ secrets.GPG_PWD }}
4546
4647 - name : Package
4748 run : |
5152 if : github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
5253 run : |
5354 mvn --no-transfer-progress --batch-mode deploy
54- env :
55- MAVEN_USERNAME : ${{ secrets.OSSRH_USER_TOKEN }}
56- MAVEN_PASSWORD : ${{ secrets.OSSRH_PWD_TOKEN }}
57- MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PWD }}
5855
5956 - name : Cache Jars
6057 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments