diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 107c4f6..6b7a839 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,14 +107,15 @@ jobs: # only release if this is a release if: "startsWith(github.ref, 'refs/tags/')" needs: [linux, windows, macos, sdist] + permissions: + # https://github.com/PyO3/maturin/issues/1575#issuecomment-1753785859 + 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 *