diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7fe537287..b44033d21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Upload Python Package +name: Release on: push: @@ -43,11 +43,11 @@ jobs: git branch git fetch --depth=1 origin +refs/tags/*:refs/tags/* - # TODO: add cbuildwheel cache - - name: Build release distributions - run: uv build --wheel + - name: Build wheels + uses: pypa/cibuildwheel@v2.22.0 env: HATCH_BUILD_HOOKS_ENABLE: true + CIBW_SKIP: cp313-macosx_* - uses: actions/upload-artifact@v4 with: @@ -76,7 +76,7 @@ jobs: run: | export UV_PUBLISH_PASSWORD="${{ secrets.PYPI_TOKEN }}" export UV_PUBLISH_USERNAME="__token__" - uv publish --publish-url https://upload.pypi.org/legacy/ --keyring-provider disabled + uv publish --publish-url https://upload.pypi.org/legacy/ - name: Make github release uses: softprops/action-gh-release@v2