File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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-
You can’t perform that action at this time.
0 commit comments