From 15e06cbc8bef484675cacf42baa2f51ae7532cb0 Mon Sep 17 00:00:00 2001 From: KingKDot Date: Sun, 22 Mar 2026 13:48:58 -0500 Subject: [PATCH] try again --- .github/workflows/desktop-release.yml | 9 ++++----- Overlord-Desktop/src/connect/renderer.js | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml index d231217..aa5e88a 100644 --- a/.github/workflows/desktop-release.yml +++ b/.github/workflows/desktop-release.yml @@ -49,16 +49,15 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Find and delete any release with this tag_name, even if the git tag no longer exists. - # gh release delete requires the tag ref to exist, so we use the API directly instead. + # Look up the release by tag_name via the list endpoint (works even if the git tag is gone) RELEASE_ID=$(gh api /repos/${{ github.repository }}/releases \ --jq '.[] | select(.tag_name == "Overlord-Desktop-v${{ env.VERSION }}") | .id' \ - 2>/dev/null | head -1) + 2>/dev/null || true) if [ -n "$RELEASE_ID" ]; then gh api --method DELETE /repos/${{ github.repository }}/releases/$RELEASE_ID || true fi - # Also delete the git tag ref if it somehow still exists - gh api --method DELETE /repos/${{ github.repository }}/git/refs/tags/Overlord-Desktop-v${{ env.VERSION }} || true + # Delete the git tag ref if it somehow still exists + gh api --method DELETE /repos/${{ github.repository }}/git/refs/tags/Overlord-Desktop-v${{ env.VERSION }} 2>/dev/null || true shell: bash - name: Create Release diff --git a/Overlord-Desktop/src/connect/renderer.js b/Overlord-Desktop/src/connect/renderer.js index 4dc96b6..3900e93 100644 --- a/Overlord-Desktop/src/connect/renderer.js +++ b/Overlord-Desktop/src/connect/renderer.js @@ -67,4 +67,4 @@ form.addEventListener("submit", async (e) => { connectBtn.disabled = false; connectBtn.querySelector(".btn-text").textContent = "Connect"; } -}); +}); \ No newline at end of file