diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5323d65f..b1f08d65 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: + - 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 }}