Skip to content

fix: publish GitHub releases as drafts for maintainer review - #348

Open
MaximeGaudin wants to merge 1 commit into
mainfrom
fix/issue-220-draft-release
Open

fix: publish GitHub releases as drafts for maintainer review#348
MaximeGaudin wants to merge 1 commit into
mainfrom
fix/issue-220-draft-release

Conversation

@MaximeGaudin

Copy link
Copy Markdown
Owner

Summary

  • gh release create/gh release edit ran without --draft, so the release and all binaries were publicly visible the moment the workflow finished, with no review gate.
  • Both branches of the create-or-update step now pass --draft: a first run creates a draft, and a re-run against an existing tag re-drafts it so the updated notes/binaries get reviewed again. A maintainer publishes explicitly with gh release edit <tag> --draft=false (or from the GitHub UI).

Note: the Homebrew tap formula is updated in the same run and points at the release download URLs, which only resolve publicly once the release is published — brew install becomes available at that point, as intended by the review gate.

Fixes #220

Test plan

  • release.yml parses as valid YAML; gh release create --help / gh release edit --help confirm --draft support on both commands, and gh release upload works against draft releases.
  • The release workflow is workflow_dispatch-only, so it is not exercised by this PR's CI.
  • CI green on the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

release.yml publishes the GitHub Release immediately, not as a draft

1 participant