Skip to content

ci: cut GitHub Release on tag runs#225

Open
ndonkoHenri wants to merge 2 commits into
mainfrom
ci-release
Open

ci: cut GitHub Release on tag runs#225
ndonkoHenri wants to merge 2 commits into
mainfrom
ci-release

Conversation

@ndonkoHenri

Copy link
Copy Markdown
Collaborator

Adds a release job to CI that publishes a GitHub Release for v* tag runs, mirroring the release step in flet and python-build.

On a v* tag push, once the existing publish job has put all six packages live on pub.dev, release creates a GitHub Release for the tag with auto-generated notes. Nothing changes for branch/PR builds.

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.
@ndonkoHenri ndonkoHenri requested a review from FeodorFitsner July 2, 2026 22:20
Comment thread .github/workflows/ci.yml
fi

- name: Create GitHub Release
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 release job gated to refs/tags/v* that detects pre-releases from the tag name and creates a GitHub Release via softprops/action-gh-release with generated notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants