Skip to content

Commit 7c95e25

Browse files
committed
Fix Workflow to publish to Sonatype
Signed-off-by: Maxime Dufour <maxime.dufour@outscale.com>
1 parent 8c7a038 commit 7c95e25

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
java-version: '11'
1616
cache: 'maven'
1717
server-id: ossrh
18-
server-username: ${{ secrets.SONATYPE_USERNAME }}
19-
server-password: ${{ secrets.SONATYPE_PASSWORD }}
18+
server-username: SONATYPE_USERNAME
19+
server-password: SONATYPE_PASSWORD
2020
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2121
- name: Publish
2222
run: mvn deploy
2323
env:
24-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
24+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
25+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
26+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)