Skip to content

Commit 97cc43d

Browse files
Revert artifact cleanup changes
1 parent 0d3ec8f commit 97cc43d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ jobs:
170170
with:
171171
path: ./client/artifacts
172172

173+
# Always cleanup even if other commands failed so we don't unnecessarily store
174+
# the artifacts in the cloud
175+
- name: Cleanup client artifacts
176+
uses: geekyeggo/delete-artifact@54ab544f12cdb7b71613a16a2b5a37a9ade990af
177+
if: always()
178+
with:
179+
name: client-*
180+
173181
- name: Publish to local repository
174182
run: ./gradlew publishToMavenLocal -Prelease_version=$RELEASE_VERSION
175183

@@ -194,10 +202,3 @@ jobs:
194202
run: |
195203
gsutil -m rsync -r -a $OBJECT_ACL ./artifacts/client-dist gs://$GCS_BUCKET/client/$RELEASE_ARTIFACT_ID/$RELEASE_VERSION
196204
working-directory: ./client
197-
198-
# Make sure to cleanup manually if pipeline fails and you aren't rerunning !
199-
- name: Cleanup client artifacts
200-
uses: geekyeggo/delete-artifact@54ab544f12cdb7b71613a16a2b5a37a9ade990af
201-
with:
202-
name: client-*
203-

0 commit comments

Comments
 (0)