diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2470b4b..c226675 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,13 +38,13 @@ 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 @@ -52,6 +52,6 @@ jobs: 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 }}