From 42ed7e376e4145dd41b34ac20e4fd8004ffc2205 Mon Sep 17 00:00:00 2001 From: Ben Jeffery Date: Wed, 30 Aug 2023 17:30:45 +0100 Subject: [PATCH] Fix wheel push config --- .github/workflows/wheels.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index d50f2ae..77398a5 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -107,6 +107,8 @@ jobs: runs-on: ubuntu-latest environment: release needs: ['windows-test', 'OSX-test', 'linux-test'] + permissions: + id-token: write steps: - name: Download all uses: actions/download-artifact@v3 @@ -118,10 +120,7 @@ jobs: if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: - password: ${{ secrets.test_pypi_password }} repository_url: https://test.pypi.org/legacy/ - name: Publish distribution to PRODUCTION PyPI if: github.event_name == 'release' uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.pypi_password }}