Skip to content

Upload release assets with the GitHub CLI - #46

Merged
glopesdev merged 1 commit into
mainfrom
refactor-release-assets
Aug 25, 2026
Merged

Upload release assets with the GitHub CLI#46
glopesdev merged 1 commit into
mainfrom
refactor-release-assets

Conversation

@glopesdev

Copy link
Copy Markdown
Contributor

The release workflow no longer depends on a third-party action. gh release upload replaces softprops/action-gh-release.

The step also moves from the publish job to the build job, so the distributions are attached to the release before the PyPI upload runs. A failure in trusted publishing then still leaves a complete release rather than an empty one, and --clobber makes the step idempotent, so re-running the job does not fail on assets already attached.

contents: write moves with the step, leaving the publish job with only the id-token: write that trusted publishing needs.

Release assets are now attached by gh release upload in the build job,
replacing the third-party action that ran in the publish job. They are
attached before publishing to PyPI, so a failure there still leaves a
complete release, and --clobber makes the step safe to re-run.
@glopesdev
glopesdev requested a review from bruno-f-cruz August 25, 2026 22:44
@glopesdev glopesdev added the feature New planned feature label Aug 25, 2026
@glopesdev
glopesdev merged commit d32971f into main Aug 25, 2026
14 checks passed
@glopesdev
glopesdev deleted the refactor-release-assets branch August 25, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New planned feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants