diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 34ad699..2445697 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 *