diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index f2ce0db..e3725f3 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -100,3 +100,22 @@ jobs: name: wheels path: dist + release: + name: Release + runs-on: ubuntu-latest + if: "startsWith(github.ref, 'refs/tags/')" + needs: [linux, windows, macos] + environment: release + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v4 + - name: Publish to PyPI + uses: PyO3/maturin-action@v1 + env: + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + with: + command: upload + args: -r https://test.pypi.org/legacy/ --non-interactive --skip-existing wheels-*/* + +