Skip to content

Attach release assets on tag; bump to 0.1.1#6

Merged
Moge800 merged 3 commits into
mainfrom
claude/wizardly-allen-lnrqxf
Jul 6, 2026
Merged

Attach release assets on tag; bump to 0.1.1#6
Moge800 merged 3 commits into
mainfrom
claude/wizardly-allen-lnrqxf

Conversation

@Moge800

@Moge800 Moge800 commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Summary

Tag pushes published to PyPI and stored Actions artifacts, but never created a GitHub Release with assets — the v0.1.0 release page is empty.

  • Add a github-release job (tag-only, contents: write) that creates the release with generated notes and attaches all dist files (3 wheels + sdist) via softprops/action-gh-release@v2.
  • Set skip-existing: true on the PyPI publish so re-running a tag never fails on files PyPI already has.
  • Bump the package version to 0.1.1 (pyproject.toml + __version__) so the assets ship via a normal patch release instead of rewriting the v0.1.0 tag.

After merging

Tag v0.1.1 on the merge commit — the workflow publishes 0.1.1 to PyPI and creates the GitHub Release with all assets attached.

🤖 Generated with Claude Code

Tags previously only published to PyPI and stored Actions artifacts, so the
GitHub Release page had no assets. Add a github-release job that creates the
release (with generated notes) and uploads all dist files, and set
skip-existing on the PyPI publish so re-running a tag doesn't fail on files
PyPI already has.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SQbVkPEprK2ebcjck5ouUy
Copilot AI review requested due to automatic review settings July 6, 2026 11:39
Patch release so the new github-release job can attach assets via a normal
v0.1.1 tag instead of rewriting v0.1.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SQbVkPEprK2ebcjck5ouUy

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

This PR enhances the release workflow so that version tag builds not only publish to PyPI and store artifacts, but also create/update a GitHub Release and attach the built distribution files as release assets.

Changes:

  • Configure PyPI publishing to skip already-existing files to support safe re-runs/backfills of tags.
  • Add a new tag-only github-release job that downloads built artifacts and uploads them as GitHub Release assets with autogenerated release notes.

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

Comment on lines +120 to +123
github-release:
name: attach assets to GitHub Release
needs: [build-wheels, build-sdist]
if: github.ref_type == 'tag'
@Moge800 Moge800 changed the title Attach wheels and sdist to the GitHub Release on tag Attach release assets on tag; bump to 0.1.1 Jul 6, 2026
Per review: without the gate, a PyPI outage could leave a GitHub Release
without a matching PyPI upload. Re-running the tag after a failure is safe
because publish uses skip-existing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SQbVkPEprK2ebcjck5ouUy

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@Moge800 Moge800 merged commit d99e608 into main Jul 6, 2026
3 checks passed
@Moge800 Moge800 deleted the claude/wizardly-allen-lnrqxf branch July 6, 2026 11:44
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