B6: release automation workflow#2
Merged
Merged
Conversation
Adds .github/workflows/release.yml that fires on pushed v*.*.* tags (or manually-published Releases). It builds the sdist + wheel from pyproject.toml and attaches them to the Release for that tag via softprops/action-gh-release. Key safety: a pre-build step verifies the tag (stripped of leading "v") matches the version in pyproject.toml. If they diverge, the workflow fails before building, so the project can never ship a wheel whose filename version disagrees with the git tag. PyPI trusted publishing is intentionally left out for now; can be added once the project has a PyPI account.
4 tasks
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.
Summary
Adds
.github/workflows/release.yml. Fires on pushedv*.*.*tags (or manually-published Releases). Builds sdist + wheel frompyproject.tomland attaches them to the GitHub Release for that tag.Safety check: a pre-build step verifies the tag (stripped of leading
v) matches theversioninpyproject.toml. If they diverge, the workflow fails before building — the project can never ship a wheel whose filename version disagrees with its git tag.Stacked on #1
This branch is based on
claude/audit-github-repo-EWQDn(PR #1), because the release workflow depends on thepyproject.tomlintroduced there. Once #1 merges, please re-target this PR's base tomain(or merge #1 first and the diff will collapse to just this commit).Out of scope
pypi-publishstep usingpypa/gh-action-pypi-publish@release/v1with OIDC trusted publishing configured on PyPI. No long-lived tokens needed.pyproject.tomlon tag push — intentionally manual. The version check above means a forgotten bump fails loudly rather than silently shipping the wrong artifact.How to use after merge
Test plan
v1.0.1-test) to confirm the workflow runs end-to-end and produces uploadable artifactsv1.1.0once the audit changes are inGenerated by Claude Code