From 30521e9b5d43f12de3a849b36306fc17d9ab9c72 Mon Sep 17 00:00:00 2001 From: TheCynosure Date: Fri, 1 Aug 2025 23:02:30 -0400 Subject: [PATCH] Publish to PyPi workflow addition to build wheels --- .github/workflows/build_wheels.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 7f07a443a3..f86a61daa5 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -33,3 +33,22 @@ jobs: with: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl + + publish_wheels: + name: Publish wheels to PyPi + if: startsWith(github.ref, 'refs/tags') + needs: [build_wheels] + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v4 + with: + pattern: "cibw-wheels-*" + path: dist/ + - name: Move wheels to dist folder + run: > + mv dist/**/*.whl dist/; + rm -r dist/cibw-wheels-* + - name: Publish packages to Pypi + uses: pypa/gh-action-pypi-publish@release/v1