diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4420c42..8d0d245 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -259,6 +259,8 @@ jobs: runs-on: ubuntu-latest if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} needs: [linux, windows, macos, sdist] + environment: + name: pypi permissions: # Use to sign the release artifacts id-token: write @@ -275,8 +277,6 @@ jobs: - name: Publish to PyPI if: ${{ startsWith(github.ref, 'refs/tags/') }} uses: PyO3/maturin-action@v1 - env: - MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} with: command: upload args: --non-interactive --skip-existing wheels-*/*