Skip to content
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,26 @@ jobs:

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.14.2

upload_release_assets:
name: Attach wheels and sdist to GitHub release
needs:
Comment thread
Copilot marked this conversation as resolved.
- build-sdist
- build-wheels
if: github.event_name == 'release' && github.event.action == 'published'

runs-on: ubuntu-26.04
permissions:
contents: write

steps:
- uses: actions/download-artifact@v8.0.1
with:
pattern: cibw-*
path: dist
merge-multiple: true

- name: Upload wheels and sdist to release
run: gh release upload "${{ github.event.release.tag_name }}" dist/* --clobber
env:
GH_TOKEN: ${{ github.token }}
Loading