From b7c8680181f31e6bce0fd328fc8683dfddae3f2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20L=C3=B3pez=20Ma=C3=B1as?= Date: Tue, 25 Jun 2024 15:51:13 +0200 Subject: [PATCH] chore: update Sonatype token (#257) * chore: update Sonatype token * chore: update Sonatype token --- .github/workflows/release.yml | 10 +++++----- build.gradle | 4 ++-- gradle.properties | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8f2a75..44c3b89 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,9 +38,9 @@ jobs: gpg --quiet --output $GITHUB_WORKSPACE/release.gpg --dearmor ./release.asc echo "Build and publish" - sed -i -e "s,sonatypeUsername=,sonatypeUsername=$SONATYPE_USERNAME,g" gradle.properties - SONATYPE_PASSWORD_ESCAPED=$(printf '%s\n' "$SONATYPE_PASSWORD" | sed -e 's/[\/&]/\\&/g') - sed -i -e "s,sonatypePassword=,sonatypePassword=$SONATYPE_PASSWORD_ESCAPED,g" gradle.properties + sed -i -e "s,sonatypeToken=,sonatypeToken=SONATYPE_TOKEN_USERNAME,g" gradle.properties + SONATYPE_TOKEN_PASSWORD_ESCAPED=$(printf '%s\n' "$SONATYPE_TOKEN_PASSWORD" | sed -e 's/[\/&]/\\&/g') + sed -i -e "s,sonatypeTokenPassword=,sonatypeTokenPassword=$SONATYPE_TOKEN_PASSWORD_ESCAPED,g" gradle.properties sed -i -e "s,signing.keyId=,signing.keyId=$GPG_KEY_ID,g" gradle.properties sed -i -e "s,signing.password=,signing.password=$GPG_PASSWORD,g" gradle.properties sed -i -e "s,signing.secretKeyRingFile=,signing.secretKeyRingFile=$GITHUB_WORKSPACE/release.gpg,g" gradle.properties @@ -48,8 +48,8 @@ jobs: GPG_KEY_ARMOR: "${{ secrets.SYNCED_GPG_KEY_ARMOR }}" GPG_KEY_ID: ${{ secrets.SYNCED_GPG_KEY_ID }} GPG_PASSWORD: ${{ secrets.SYNCED_GPG_KEY_PASSWORD }} - SONATYPE_PASSWORD: ${{ secrets.SYNCED_SONATYPE_PASSWORD }} - SONATYPE_USERNAME: ${{ secrets.SYNCED_SONATYPE_USERNAME }} + SONATYPE_TOKEN_PASSWORD: ${{ secrets.SYNCED_SONATYPE_TOKEN_PASSWORD }} + SONATYPE_TOKEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_USERNAME }} - uses: actions/setup-node@v2 with: diff --git a/build.gradle b/build.gradle index 08a1738..6047543 100644 --- a/build.gradle +++ b/build.gradle @@ -154,8 +154,8 @@ subprojects { project -> name = "mavencentral" url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" credentials { - username sonatypeUsername - password sonatypePassword + username sonatypeToken + password sonatypeTokenPassword } } } diff --git a/gradle.properties b/gradle.properties index 7b0b8cf..c6f2684 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,5 +26,5 @@ signing.keyId= signing.password= signing.secretKeyRingFile= -sonatypeUsername= -sonatypePassword= +sonatypeToken= +sonatypeTokenPassword=