mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Merge pull request #6 from jhbruhn/delete-release-artifacts-before-upload
fix: Delete release artifacts before upload to prevent duplicates
This commit is contained in:
commit
d3655c4565
1 changed files with 7 additions and 0 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
|
@ -99,6 +99,13 @@ jobs:
|
|||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: Delete existing release artifacts
|
||||
run: |
|
||||
gh release view ${{ needs.draft-release.outputs.tag-name }} --json assets --jq '.assets[].name' | \
|
||||
xargs -I {} gh release delete-asset ${{ needs.draft-release.outputs.tag-name }} {} --yes || true
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload all assets to release
|
||||
run: |
|
||||
find artifacts -type f -exec gh release upload ${{ needs.draft-release.outputs.tag-name }} {} --clobber \;
|
||||
|
|
|
|||
Loading…
Reference in a new issue