File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ jobs:
26
26
architecture : x64
27
27
distribution : " adopt"
28
28
server-id : ossrh # Value of the distributionManagement/repository/id field of the pom.xml
29
- server-username : ${{ secrets.OSSRH_USERNAME }} # env variable for username in deploy
30
- server-password : ${{ secrets.OSSRH_TOKEN }} # env variable for token in deploy
29
+ server-username : MAVEN_USERNAME # env variable for username in deploy
30
+ server-password : MAVEN_PASSWORD # env variable for token in deploy
31
31
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
32
32
gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
33
33
34
34
- name : Publish package to Maven Central
35
35
run : |
36
- mvn -Darguments=-Dgpg.passphrase=MAVEN_GPG_PASSPHRASE - -batch-mode deploy -Dmaven.test.skip=true
36
+ mvn --batch-mode deploy -Dmaven.test.skip=true
37
37
env :
38
38
MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
39
39
MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
You can’t perform that action at this time.
0 commit comments