Skip to content

Commit d5179f8

Browse files
chore: allow release recreate in workflow
1 parent c931a4e commit d5179f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,11 @@ jobs:
331331
env:
332332
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
333333
run: |
334+
if gh release view ${{ github.ref_name }} >/dev/null 2>&1; then
335+
echo "ℹ️ Existing release ${{ github.ref_name }} found; deleting before recreate"
336+
gh release delete ${{ github.ref_name }} --yes
337+
fi
338+
334339
gh release create ${{ github.ref_name }} \
335340
release-files/* \
336341
--title "Shimmy ${{ github.ref_name }}" \

0 commit comments

Comments
 (0)