From 869a796db99d1f7b62ba888e73f0b6a563a8441c Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Mon, 12 May 2025 16:28:42 +0200 Subject: [PATCH] Add trusted publishing --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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-*/*