Skip to content

Commit

Permalink
Enable trusted publishing for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
matusf committed Feb 27, 2024
1 parent 39bd8e6 commit 9bdbd73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
steps:
Expand All @@ -113,8 +117,6 @@ jobs:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *
Expand Down

0 comments on commit 9bdbd73

Please sign in to comment.