ci: adopt release-please for automated releases#14
Draft
kw-datamasque wants to merge 3 commits into
Draft
Conversation
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.
Replaces the manual
make release-*flow (which themainruleset blocked frompushing) with release-please:
releases are now driven by Conventional Commits.
What
release-please.yml— on each merge tomain, release-please keeps an openrelease PR that bumps
pyproject.tomland regeneratesCHANGELOG.mdfrom commitmessages. Merging that PR tags the commit, creates the GitHub Release, and publishes
to PyPI. The publish job is gated on a release actually being cut
(
release_created == 'true'), so it runs in the same workflow run as the merge — noPAT and no "GITHUB_TOKEN doesn't trigger workflows" gotcha.
release.yml— the tag-triggered publisher is superseded; one route to PyPI.make release-{patch,minor,major}+scripts/bump_version.py— dead underthe ruleset, and now release-please's job.
Two one-time settings before publishing works (not in the diff)
release-please.yml(keep environmentpypi).Until then the publish step fails OIDC; everything before it (release PR, bump,
changelog, tag, GitHub Release) still works.
approve pull requests, or release-please can't open its PR.
First run
Manifest is seeded at
1.3.0, so the first release PR will be v1.3.1 (from thefix:in #13), with the changelog grouped by type.
Not in scope
Existing
CHANGELOG.mdentries keep their### Addedstyle; new sections will useConventional-Commit headings (
### Bug Fixes, etc.). Left as-is rather than rewritingpast entries.