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