From e2bbd7a358726ee06897c0bd5bab9629af11d28b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 29 Nov 2023 21:27:19 +0000 Subject: [PATCH] use pypa/gh-action-pypi-publish instead of PyO3/maturin-action --- .github/workflows/publish.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a2ab464..f50ac8e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -119,17 +119,15 @@ jobs: skip-existing: true release: - name: Pulish to PyPI if upload to Test PyPI was successful + name: Publish to PyPI if upload to Test PyPI was successful runs-on: ubuntu-latest - if: "startsWith(github.ref, 'refs/tags/')" - needs: [linux, windows, macos, sdist, release-test] + needs: [release-test] steps: - uses: actions/download-artifact@v3 with: name: wheels - name: Publish to PyPI - uses: PyO3/maturin-action@v1 - env: - MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1 with: - command: upload + password: ${{ secrets.PYPI_API_TOKEN }} + packages-dir: ./