ci: Cut releases from git tags#14
Draft
kw-datamasque wants to merge 11 commits into
Draft
Conversation
ffe33d2 to
cb4f92f
Compare
cb4f92f to
1e36794
Compare
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.
What this does
Cut a release by tagging. The version is derived from the Git tag, GitHub
generates the notes from the merged pull requests, and CI publishes to PyPI.
No version field to bump, no
CHANGELOG.md, nothing committed tomain.Supersedes the original release-please proposal, which assumed every commit on
mainis Conventional (external contributors are not) and added a release-PRand manifest for what is a single-wheel project.
Changes
hatch-vcs);pyproject.tomlno longer pins one.make release-{patch,minor,major}(scripts/release.sh): bumps from the latesttag and creates the release via
gh. Tag-only, so themainruleset allows it.release.ymlrejects malformed or out-of-order tags before publishing..github/release.ymlfilters Dependabot from the auto-generated notes.CHANGELOG.md,scripts/bump_version.py, and the old push-to-mainrelease targets.
Releasing, after this lands
make release-patch(or-minor/-major), orgh release create vX.Y.Z --generate-notes. Reuses the existing PyPI trusted publisher; no settings change.TestPyPI path verified end to end (
1.4.1.dev9uploaded via the publisher).Draft for review; no real release cut.