Skip to content

Commit

Permalink
maven-publish-fix - fixing maven central publish
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Chmielewski <[email protected]>
  • Loading branch information
kristoffSC committed Aug 3, 2024
1 parent 4babf0e commit aedf80f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
java-version: '11'
distribution: 'temurin'
server-id: ossrh
server-username: ${{ secrets.SONATYPE_TOKEN_USERNAME }}
server-password: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PRIVATE_KEY_PASSWORD

- name: Publish to Apache Maven Central
if: github.event.release
run: mvn deploy -P release
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_TOKEN_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
GPG_PRIVATE_KEY_PASSWORD: ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}

0 comments on commit aedf80f

Please sign in to comment.