From d9e1b45575f60474a9bfb3156aad494b2284323f Mon Sep 17 00:00:00 2001 From: ok-nick Date: Tue, 10 Nov 2026 14:58:23 -0500 Subject: [PATCH] ci: upload wheels to GitHub releases --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e970c93a..c8c75b8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -506,7 +506,7 @@ jobs: needs: [test-built-linux-wheel, test-built-macos-wheel, test-built-windows-wheel, sdist] permissions: id-token: write - contents: read + contents: write steps: - uses: actions/checkout@v4 - name: Create dist directory @@ -530,3 +530,9 @@ jobs: verbose: true # Uncomment below for test runs, otherwise fails on existing packages being reuploaded skip-existing: true + - name: Upload wheels to GitHub release + if: startsWith(github.ref, 'refs/tags/') + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release upload "${{ github.ref_name }}" dist/*.whl dist/*.tar.gz --clobber