Skip to content

Commit

Permalink
Introduce failure recovery to GitHub Actions workflow (#186)
Browse files Browse the repository at this point in the history
Added new steps in the GitHub Actions workflow to ensure continued operation in case of failures during the library publishing process. If a failure occurs while running the 'publishAllPublicationsToSpaceRepository' gradle task, the workflow will subsequently patch IDE config files and attempt to re-publish the libraries. This ensures resilience in our CI/CD process.
  • Loading branch information
fscarponi authored Jun 19, 2024
1 parent 0dbef8c commit ce4a5d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ jobs:
distribution: 'zulu'
- uses: gradle/gradle-build-action@v3
- name: Publish libraries
id: simple-build-publish
continue-on-error: true
run: ./gradlew publishAllPublicationsToSpaceRepository
- name: Patch IDE config files
if: steps.simple-build-publish.outcome == 'failure'
run: kotlinc -script ./.github/workflows/TrustKotlinGradlePluginPatch.main.kts
- name: Publish libraries
if: steps.simple-build-publish.outcome == 'failure'
run: ./gradlew publishAllPublicationsToSpaceRepository
- name: Publish release plugin to TBE
env:
Expand Down

0 comments on commit ce4a5d4

Please sign in to comment.