Skip to content

Commit

Permalink
use pypa/gh-action-pypi-publish instead of PyO3/maturin-action
Browse files Browse the repository at this point in the history
  • Loading branch information
p-j-smith committed Nov 29, 2023
1 parent 458f918 commit e2bbd7a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ./

0 comments on commit e2bbd7a

Please sign in to comment.