ci: cut GitHub Release on tag runs#225
Open
ndonkoHenri wants to merge 2 commits into
Open
Conversation
Add a `release` job that publishes a GitHub Release for v* tags, mirroring the release step in flet / python-build. - needs: publish — cut the release only after all six packages are live on pub.dev, so a release always marks a genuinely-published version. - Scoped `contents: write` (top-level stays `contents: read`). - generate_release_notes: true — notes from merged PRs since the last tag; no artifacts to attach (serious_python ships to pub.dev). - Hyphen-suffixed tags (e.g. v1.2.0-beta.1) are marked as pre-releases; github.ref_name is passed via env, not interpolated (no template injection). - softprops/action-gh-release pinned to the same SHA python-build uses.
| fi | ||
|
|
||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1 |
There was a problem hiding this comment.
Pull request overview
Adds a tag-only release job to the existing CI workflow to automatically create a GitHub Release after the publish job completes on v* tag pushes, using auto-generated release notes.
Changes:
- Standardizes cache-related comments to “Avoid release-time cache poisoning.”
- Adds a
releasejob gated torefs/tags/v*that detects pre-releases from the tag name and creates a GitHub Release viasoftprops/action-gh-releasewith generated notes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Adds a
releasejob to CI that publishes a GitHub Release forv*tag runs, mirroring the release step infletandpython-build.On a
v*tag push, once the existingpublishjob has put all six packages live on pub.dev,releasecreates a GitHub Release for the tag with auto-generated notes. Nothing changes for branch/PR builds.