Skip to content

Commit

Permalink
fix(ci): add Gradle signing credentials and continue-on-error
Browse files Browse the repository at this point in the history
- Add missing Gradle signing credentials to workflows
- Set continue-on-error for snapshot publish step on macOS

Signed-off-by: Art Shendrik <[email protected]>
  • Loading branch information
amal committed Nov 26, 2024
1 parent 18c4731 commit a1f5ad3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1f5ad3

Please sign in to comment.