From e9f0c05097dc167031575391d83240d37556f098 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sat, 10 Feb 2024 17:51:10 +0000 Subject: [PATCH] use PyPI trusted publishing --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 47cbc751..11751d7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -111,6 +111,8 @@ jobs: deploy: needs: [check, test] runs-on: ubuntu-latest + environment: pypi + permissions: {contents: write, id-token: write, packages: write} steps: - uses: actions/checkout@v4 with: @@ -127,7 +129,6 @@ jobs: - id: dist uses: casperdcl/deploy-pypi@v2 with: - password: ${{ secrets.PYPI_TOKEN }} gpg_key: ${{ secrets.GPG_KEY }} upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} - id: collect_assets