From 54093a21c7d0c2cdc3f867f9fe0846d2784eea1a Mon Sep 17 00:00:00 2001 From: KingKDot Date: Sun, 22 Mar 2026 13:34:52 -0500 Subject: [PATCH] fix release not building --- .github/workflows/desktop-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml index e38841a..aa51c3d 100644 --- a/.github/workflows/desktop-release.yml +++ b/.github/workflows/desktop-release.yml @@ -43,11 +43,14 @@ jobs: name: overlord-desktop-${{ env.VERSION }} path: Overlord-Desktop/dist/Overlord Setup.exe - - name: Delete Existing Release + - name: Delete Existing Release and Tag env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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 - name: Create Release