From 5b2ef730fbe61dc362eebaebe0635ee3f41bf5e3 Mon Sep 17 00:00:00 2001 From: Matthew Jackson Date: Sat, 8 Aug 2026 11:23:44 -0700 Subject: [PATCH] release: draft the Release until assets are verified, so latest never points at nothing --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 997ec6d..c771818 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,7 @@ jobs: gh release create "${GITHUB_REF_NAME}" \ --repo "${GITHUB_REPOSITORY}" \ --title "busbar-store-sqlite ${GITHUB_REF_NAME}" \ + --draft \ --verify-tag --generate-notes \ || gh release view "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" @@ -176,6 +177,12 @@ jobs: "delete this tag+release, and re-cut." >&2 exit 1 fi + # Only now, with assets provably attached, does this stop being a draft and become + # the release that `releases/latest` resolves to. + gh release edit "${GITHUB_REF_NAME}" \ + --repo "${GITHUB_REPOSITORY}" \ + --draft=false --latest + echo "::notice::Published ${GITHUB_REF_NAME} with ${count} asset(s)." # Instant marketing-site rebuild the moment this plugin ships a real release -- marketing's # deploy.yml listens for this exact repository_dispatch event type (plus its own daily-poll