From 5b018046e08e9b5057e0bbacea3a500d0a389407 Mon Sep 17 00:00:00 2001 From: Ben Limmer Date: Thu, 15 Oct 2026 11:49:10 -0600 Subject: [PATCH] ci: publish releases only after GoReleaser uploads assets release-please published the GitHub Release as soon as the release PR merged, so releases/latest/download/analyze.sh 404'd until GoReleaser finished uploading (~2.5 min), tripping the Sentry uptime monitor on every release. release-please now creates a draft (with force-tag-creation so the v* tag still triggers release.yml), and GoReleaser uploads to that draft via use_existing_draft and publishes it once the assets are in place. Fixes PATCHWAVE-ANALYSIS-CLI-3 --- .goreleaser.yaml | 4 ++++ release-please-config.json | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 700e582..e167852 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -66,8 +66,12 @@ notarize: changelog: disable: true +# release-please creates the release as a draft so `releases/latest` keeps +# pointing at the previous release until every asset is uploaded; goreleaser +# publishes the draft once the uploads finish. release: draft: false + use_existing_draft: true prerelease: auto mode: keep-existing extra_files: diff --git a/release-please-config.json b/release-please-config.json index 76393a4..82407be 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -6,6 +6,8 @@ "package-name": "patchwave-analysis", "include-component-in-tag": false, "changelog-path": "CHANGELOG.md", + "draft": true, + "force-tag-creation": true, "bump-minor-pre-major": true, "changelog-sections": [ { "type": "feat", "section": "Features" },