Skip to content

ci(release): create GitHub releases on tag push, drop release-drafter - #42

Open
ykdojo wants to merge 1 commit into
mainfrom
ci-release-notes
Open

ci(release): create GitHub releases on tag push, drop release-drafter#42
ykdojo wants to merge 1 commit into
mainfrom
ci-release-notes

Conversation

@ykdojo

@ykdojo ykdojo commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Removes release-drafter and makes tag pushes produce GitHub releases with auto-generated notes, so the Releases page matches the tag-driven publish flow this repo actually uses.

Why

  • Publishing has always been tag-push driven (publish-package.yml), never via GitHub releases. Release-drafter assumes the opposite flow: it keys the next version off the last published GitHub release, and since none existed it sat stuck at a v0.0.1 draft reading "No changes" (that stale draft is already deleted; without this change the next merge to main recreates it).
  • The Releases page was empty as a result - no human-readable changelog for the package.

Contents

  • Delete .github/workflows/release-drafter.yml + its .github/release-drafter.yml config.
  • publish-package.yml: after the PyPI upload on a tag push, run gh release create "$GITHUB_REF_NAME" --generate-notes --verify-tag (job gains contents: write). Guarded to push events only, so workflow_dispatch/TestPyPI runs never create releases.
  • AGENTS.md: correct the Versioning & Publishing section - the trigger is a v* tag push, not publishing a GitHub release - and add the two-command release recipe.

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.

1 participant