From 87b76248f34bbab74f103225cc74032f7db6ed66 Mon Sep 17 00:00:00 2001 From: Daniel Wrigley <54574577+wrigleyDan@users.noreply.github.com> Date: Fri, 5 Jul 2024 15:23:08 +0200 Subject: [PATCH] Add Sonatype user access token information to publish process (#496) Add Sonatype user access token information to publish process to fix broken publishing jobs --- .github/workflows/release.yml | 3 +++ publish/build.gradle | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5fdd1941..c8c9bc00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,4 +52,7 @@ jobs: SONATYPE_PASS: ${{ secrets.SONATYPE_PASS }} GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} GPG_SIGNING_PASS: ${{ secrets.GPG_SIGNING_PASS }} + OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} + OSSRH_TOKEN_PASSSWORD: ${{ secrets.OSSRH_TOKEN_PASSSWORD }} + run: ./gradlew publish diff --git a/publish/build.gradle b/publish/build.gradle index 5e1652d6..b3fb3024 100644 --- a/publish/build.gradle +++ b/publish/build.gradle @@ -42,8 +42,8 @@ publishing { url = System.getenv('SONATYPE_REPO_URL') credentials { - username = System.getenv('SONATYPE_USER') - password = System.getenv('SONATYPE_PASS') + username = System.getenv('OSSRH_TOKEN') + password = System.getenv('OSSRH_TOKEN_PASSSWORD') } } }