Skip to content

Comments

Add GitHub Release publishing of binary wheels via cibuildwheel#8

Merged
alexlib merged 2 commits intomasterfrom
copilot/add-github-action-submit-binaries
Feb 19, 2026
Merged

Add GitHub Release publishing of binary wheels via cibuildwheel#8
alexlib merged 2 commits intomasterfrom
copilot/add-github-action-submit-binaries

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Binary wheels built by cibuildwheel were not published anywhere, making them inaccessible to users without building from source.

Changes

  • New v* tag trigger — workflow now fires on version tag pushes (e.g., v1.0.0) in addition to branch pushes and PRs
  • New release job — runs only on tag pushes (startsWith(github.ref, 'refs/tags/v')), depends on all build matrix jobs completing successfully, then:
    • Downloads wheels from all three platform artifacts (Linux, macOS, Windows) via actions/download-artifact@v7
    • Publishes them as assets on a GitHub Release via softprops/action-gh-release@v2
    • Requires contents: write permission scoped to this job only

Usage

git tag v1.0.0
git push origin v1.0.0

This triggers a full wheel build across all platforms and attaches the resulting .whl files to the v1.0.0 GitHub Release, allowing users to install binary wheels directly without a PyPI publish step.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: alexlib <747110+alexlib@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub action for submitting binary wheels to releases Add GitHub Release publishing of binary wheels via cibuildwheel Feb 19, 2026
Copilot AI requested a review from alexlib February 19, 2026 17:08
@alexlib alexlib marked this pull request as ready for review February 19, 2026 17:20
Copilot AI review requested due to automatic review settings February 19, 2026 17:20
@alexlib alexlib merged commit 00070a4 into master Feb 19, 2026
4 checks passed
Copy link

Copilot AI left a comment

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 adds automated GitHub Release publishing for binary wheels built by cibuildwheel. Previously, wheels were built but not published, requiring users to build from source. The workflow now publishes wheels as GitHub Release assets when version tags are pushed.

Changes:

  • Added v* tag trigger to the workflow to fire on version tag pushes
  • Added new release job that downloads wheels from all platform artifacts and publishes them to GitHub Releases
  • Scoped contents: write permission to the release job only

contents: write
steps:
- name: Download all wheels
uses: actions/download-artifact@v7
Copy link

Copilot AI Feb 19, 2026

Choose a reason for hiding this comment

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

The download-artifact action version (v7) is incompatible with the upload-artifact version (v4) used in the build job at line 41. Actions v4 artifacts cannot be downloaded with actions v7. Change this to actions/download-artifact@v4 to match the upload action version, or upgrade both to the latest compatible versions.

Suggested change
uses: actions/download-artifact@v7
uses: actions/download-artifact@v4

Copilot uses AI. Check for mistakes.
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.

2 participants