From e9a2a79bb6e5aa465835fb230cb16052479da208 Mon Sep 17 00:00:00 2001 From: ThibaultBee Date: Fri, 1 Apr 2022 11:22:12 +0200 Subject: [PATCH] fix(*): fix release CI action --- .github/workflows/release.yml | 8 +------- lib/build.gradle | 4 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47f4ae31..81a2a88c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,13 +27,7 @@ jobs: env: GPG_KEYRING_FILE_CONTENT: "${{ secrets.GPG_KEYRING_FILE_CONTENT }}" - name: Publish package - uses: gradle/gradle-build-action@v2 - with: - arguments: | - publish - -Psigning.secretKeyRingFile=$(echo ~/secring.gpg) - -Psigning.password=$GPG_PASSPHRASE - -Psigning.keyId=$GPG_KEY_ID + run: gradle publish -Psigning.secretKeyRingFile=$(echo ~/secring.gpg) -Psigning.password=$GPG_PASSPHRASE -Psigning.keyId=$GPG_KEY_ID env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} diff --git a/lib/build.gradle b/lib/build.gradle index 6e6a1fc5..21fc86a3 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -99,9 +99,9 @@ afterEvaluate { maven { name = "OSSRH" if (!isReleasedVersion) { - url "https://oss.sonatype.org/content/repositories/snapshots" + url "https://s01.oss.sonatype.org/content/repositories/snapshots" } else { - url "https://oss.sonatype.org/service/local/staging/deploy/maven2" + url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2" } credentials { username = System.getenv("MAVEN_USERNAME")