diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a9f9ce..045e7ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,8 +33,8 @@ jobs: GPG_PASSPHRASE=$(jq -r '.inputs.gpg_passphrase' $GITHUB_EVENT_PATH) echo ::add-mask::$SONATYPE_USERNAME echo SONATYPE_USERNAME=$SONATYPE_USERNAME >> $GITHUB_ENV - echo ::add-mask::$SONATYPE_PASSWORD - echo SONATYPE_PASSWORD=$SONATYPE_PASSWORD >> $GITHUB_ENV + echo ::add-mask::$SONATYPE_TOKEN + echo SONATYPE_TOKEN=$SONATYPE_TOKEN >> $GITHUB_ENV echo ::add-mask::$GPG_PASSPHRASE echo GPG_PASSPHRASE=$GPG_PASSPHRASE >> $GITHUB_ENV - uses: actions/checkout@v4 @@ -81,7 +81,7 @@ jobs: JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }} JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME: ${{ env.SONATYPE_USERNAME }} - JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD: ${{ env.SONATYPE_PASSWORD }} + JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD: ${{ env.SONATYPE_TOKEN }} run: | ./mvnw -ntp -B --file pom.xml -Pjreleaser jreleaser:release