Skip to content

Commit

Permalink
Fix publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz8 committed Jan 8, 2025
1 parent 3148d7b commit 259ac7b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ jobs:
run: mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS verify

- name: Set up Apache Maven Central
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_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 -f pom.xml deploy -P release -DskipTests
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_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 259ac7b

Please sign in to comment.