ci: tag-driven release (PyPI + GitHub Release + v0 in one workflow)#35
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapts modern-di's tag-driven release (#233/#235) to semvertag. A hand-pushed
bare semver tag becomes the sole release entry point: one
release.ymlpublishes to PyPI (version from the tag), creates the GitHub Release (body from
planning/releases/<tag>.mdwhen present), then floats thev0action tag —PyPI first, so a failed publish creates no Release.
Why it's not a straight copy
semvertag dogfoods its own auto-tagger, which modern-di does not. So:
semvertag.ymlswitches to dry-run (contents: read, no push token) — itstill exercises
action.ymlon every push tomainbut never pushes a tag,so the only tags reaching the repo are deliberate, maintainer-pushed releases.
tag-major.yml(wason: release: published) is folded intorelease.ymlas a final
Float major tagstep. A Release created byrelease.ymlwithGITHUB_TOKENwould not have re-fired the oldrelease: publishedtrigger(GitHub's anti-recursion rule), so a standalone
tag-major.ymlwould havesilently stopped updating
v0.publish.yml(on: release: published) is deleted — no double-publishwindow.
Docs
The contributor-facing release runbook (
docs/contributing/release.md, alsostale — it described OIDC/tag-guard machinery that no longer exists) is removed
from the docs site; a maintainer-only runbook lives in
CLAUDE.md.Verification
release.yml/semvertag.ymlparse as YAML; no live references to thedeleted workflows survive.
just lint-ci,just docs-build(strict), andjust test(457 passed, 100%coverage) all green.
release.yml).Reviewer notes (non-blocking, from the whole-branch review)
body_pathfallback relies onaction-gh-releasetreating it as unset(correct today; faithful to the modern-di template).
CLAUDE.mdrunbook.
SHA-pinned).
Spec + plan:
planning/changes/2026-06-25.01-tag-driven-release/.🤖 Generated with Claude Code