diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index d78dbc80..4ccd27df 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -161,6 +161,7 @@ jobs: release: name: Release + environment: release runs-on: ubuntu-latest if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} needs: [linux, windows, macos, sdist] @@ -180,8 +181,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-*/*