File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,14 @@ jobs:
12
12
java-version : ' 11'
13
13
distribution : ' temurin'
14
14
server-id : central
15
- server-username : ${{ secrets.MAVEN_CENTRAL_USER }}
16
- server-password : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
15
+ server-username : MAVEN_USERNAME # env variable for username in deploy
16
+ server-password : MAVEN_CENTRAL_TOKEN # env variable for token in deploy
17
17
gpg-private-key : ${{ secrets.GPG_SIGNING_KEY }}
18
- gpg-passphrase : ${{ secrets.GPG_SIGNING_KEY_PASSPHRASE }}
18
+ gpg-passphrase : GPG_PASSPHRASE
19
19
20
20
- name : Publish package
21
- run : mvn -B -P release deploy
21
+ run : mvn -B -P release deploy
22
+ env :
23
+ MAVEN_USERNAME : ${{ secrets.MAVEN_CENTRAL_USER }}
24
+ MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
25
+ GPG_PASSPHRASE : ${{ secrets.GPG_SIGNING_KEY_PASSPHRASE }}
You can’t perform that action at this time.
0 commit comments