ci: ensure previous release assets are purged on re-release
This commit is contained in:
parent
d7618833ef
commit
f125ac2d0b
1 changed files with 6 additions and 0 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -141,6 +141,12 @@ jobs:
|
|||
echo "tag=v2.2.3" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Clean up previous release if exists
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release delete "${{ steps.release_tag.outputs.tag }}" -y --cleanup-tag=false || true
|
||||
|
||||
- name: Publish GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue