Skip to content

Commit

Permalink
Move artifact cleanup to end of pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
TheApplePieGod committed Jan 16, 2024
1 parent 207ba59 commit b3623d4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,6 @@ jobs:
with:
path: ./client/artifacts

# Always cleanup even if other commands failed so we don't unnecessarily store
# the artifacts in the cloud
- name: Cleanup client artifacts
uses: geekyeggo/delete-artifact@54ab544f12cdb7b71613a16a2b5a37a9ade990af
if: always()
with:
name: client-*

- name: Publish to local repository
run: ./gradlew publishToMavenLocal -Prelease_version=$RELEASE_VERSION

Expand All @@ -202,3 +194,11 @@ jobs:
run: |
gsutil -m rsync -r -a $OBJECT_ACL ./artifacts/client-dist gs://$GCS_BUCKET/client/$RELEASE_ARTIFACT_ID/$RELEASE_VERSION
working-directory: ./client

# Make sure to cleanup manually if pipeline fails and you aren't rerunning !
- name: Cleanup client artifacts
uses: geekyeggo/delete-artifact@54ab544f12cdb7b71613a16a2b5a37a9ade990af
if: always()
with:
name: client-*

0 comments on commit b3623d4

Please sign in to comment.