Skip to content

Commit

Permalink
Fix publishing to PyPI via trusted publishing.
Browse files Browse the repository at this point in the history
Fix publishing to PyPI via trusted publishing as described in:
  PyO3/maturin#1575
  • Loading branch information
ghuls committed Feb 7, 2024
1 parent 90e3a62 commit a53734d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,18 @@ jobs:

release:
name: Release
environment: release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, macos, sdist]
permissions:
id-token: write
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 }}
with:
command: upload
args: --non-interactive --skip-existing *

0 comments on commit a53734d

Please sign in to comment.