mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
fix: Delete release artifacts before upload to prevent duplicates
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
77efb8e9b9
commit
6e7f4fb212
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:
|
with:
|
||||||
path: artifacts
|
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
|
- name: Upload all assets to release
|
||||||
run: |
|
run: |
|
||||||
find artifacts -type f -exec gh release upload ${{ needs.draft-release.outputs.tag-name }} {} --clobber \;
|
find artifacts -type f -exec gh release upload ${{ needs.draft-release.outputs.tag-name }} {} --clobber \;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue