Skip to content

Commit c877a20

Browse files
committed
Fixing setup of java plugin for deploying to maven
1 parent 07e8987 commit c877a20

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ jobs:
1212
java-version: '11'
1313
distribution: 'temurin'
1414
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
1717
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
18-
gpg-passphrase: ${{ secrets.GPG_SIGNING_KEY_PASSPHRASE }}
18+
gpg-passphrase: GPG_PASSPHRASE
1919

2020
- 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 }}

0 commit comments

Comments
 (0)