Skip to content

Commit

Permalink
Delete artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jul 28, 2023
1 parent dfd829c commit 09b9a46
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ jobs:
# If this is set to true, *every* commit will be treated as a new version.
bump_each_commit: true

commit-assets:
commit:
name: Commit changes to assets
needs: version
runs-on: [ubuntu-latest]
Expand Down Expand Up @@ -212,3 +212,18 @@ jobs:
# Arguments for the git tag command (the tag name always needs to be the first word not preceded by an hyphen)
# Default: ''
tag: "v${{ needs.version.outputs.version }}"

cleanup:
name: Commit changes to assets
needs: [build, commit]
runs-on: [ubuntu-latest]
if: |
always() &&
needs.commit.result == 'success' &&
(needs.build == 'success' || needs.commit == 'skipped')
steps:
- uses: geekyeggo/delete-artifact@v2
with:
name: release

0 comments on commit 09b9a46

Please sign in to comment.