fix release not building
This commit is contained in:
@@ -43,11 +43,14 @@ jobs:
|
|||||||
name: overlord-desktop-${{ env.VERSION }}
|
name: overlord-desktop-${{ env.VERSION }}
|
||||||
path: Overlord-Desktop/dist/Overlord Setup.exe
|
path: Overlord-Desktop/dist/Overlord Setup.exe
|
||||||
|
|
||||||
- name: Delete Existing Release
|
- name: Delete Existing Release and Tag
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
gh release delete Overlord-Desktop-v${{ env.VERSION }} --yes --cleanup-tag || echo "No existing release/tag to delete"
|
# Delete the release (--cleanup-tag attempts to delete the tag too)
|
||||||
|
gh release delete Overlord-Desktop-v${{ env.VERSION }} --yes --cleanup-tag || true
|
||||||
|
# Explicitly delete the git tag ref via API in case the above didn't clean it up
|
||||||
|
gh api --method DELETE /repos/${{ github.repository }}/git/refs/tags/Overlord-Desktop-v${{ env.VERSION }} || true
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
|||||||
Reference in New Issue
Block a user