From a1f5ad3074426ed053014d92de3c13cb752837a9 Mon Sep 17 00:00:00 2001 From: Art Shendrik Date: Tue, 26 Nov 2024 21:15:18 +0000 Subject: [PATCH] fix(ci): add Gradle signing credentials and continue-on-error - Add missing Gradle signing credentials to workflows - Set continue-on-error for snapshot publish step on macOS Signed-off-by: Art Shendrik --- .github/workflows/build.yml | 7 ++++++- .github/workflows/release.yml | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ded002b..86a23d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -160,6 +160,7 @@ jobs: - name: 'Publish SNAPSHOT' id: snapshot + continue-on-error: true if: matrix.os == 'macos' && matrix.java == '23' && steps.check.outcome == 'success'&& github.event_name == 'push' && env.IS_DEFAULT_REPO && env.IS_DEFAULT_BRANCH @@ -168,8 +169,12 @@ jobs: OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} RELEASE: true - run: ./gradlew publish -DDISABLE_TESTS --rerun-tasks --no-configuration-cache --stacktrace --scan + run: ./gradlew publish -DDISABLE_TESTS --no-configuration-cache --stacktrace --scan - name: Upload the build report if: always() diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 105a303..27e6bcc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,6 +95,10 @@ jobs: OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} SIGNING_KEY: ${{ secrets.SIGNING_KEY }} SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} run: > ./gradlew publish -DDISABLE_TESTS --rerun-tasks --no-build-cache --no-configuration-cache --stacktrace --scan