From 93e946f3c27ed4c62f33a637c053537e257b1099 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sat, 16 Sep 2023 15:05:24 +0100 Subject: [PATCH] python release --- .github/workflows/python.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index def8cda..ce480ba 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -102,6 +102,11 @@ jobs: release: name: Release runs-on: ubuntu-latest + # Specifying a GitHub environment is optional, but strongly encouraged + environment: python + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write if: "startsWith(github.ref, 'refs/tags/')" needs: [linux, windows, macos, sdist] steps: @@ -110,8 +115,6 @@ jobs: 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 *