Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(ci): delete remote tag first for idempotent reruns

EtienneLescotf07ae0293517
diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml
index fe8fd1b22..e3f355928 100644
--- a/.github/workflows/prerelease.yml
+++ b/.github/workflows/prerelease.yml
@@ -134,6 +134,9 @@ jobs:
git fetch origin main
git checkout main
git reset --hard origin/main
+ # Delete remote tag first (idempotent on rerun) and any local tag.
+ git push origin ":${RC_TAG}" 2>/dev/null || true
+ git tag -d "$RC_TAG" 2>/dev/null || true
git tag "$RC_TAG"
git push origin "$RC_TAG"
diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml
index 507537ffe..da7625071 100644
--- a/.github/workflows/promote.yml
+++ b/.github/workflows/promote.yml
@@ -115,6 +115,9 @@ jobs:
git fetch origin main
git checkout main
git reset --hard origin/main
+ # Delete remote tag first (idempotent on rerun) and any local tag.
+ git push origin ":${STABLE_TAG}" 2>/dev/null || true
+ git tag -d "$STABLE_TAG" 2>/dev/null || true
git tag "$STABLE_TAG"
git push origin "$STABLE_TAG"