Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernLoetters committed Feb 1, 2025
1 parent 12d5000 commit 887f523
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 @@ -20,16 +20,16 @@ jobs:
java-version: '21'
distribution: 'temurin'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
server-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
server-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
gpg-passphrase: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}

- name: Set version
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}

- name: Publish package
run: mvn --batch-mode deploy -DskipTests
run: mvn --batch-mode deploy -DskipTests -X
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
Expand Down

0 comments on commit 887f523

Please sign in to comment.