From a50a990dc42bb956d64feb62a374c1176225119f Mon Sep 17 00:00:00 2001 From: Ralph Urlus Date: Thu, 11 Apr 2024 09:57:21 +0200 Subject: [PATCH] CICD: Switch to trusted publisher based auth for releases to PyPi --- .github/workflows/wheels.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index a964e73..210b573 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -123,11 +123,16 @@ jobs: name: artifact-macos-arm path: wheelhouse/*.whl - upload_all: - name: Upload if release + pypi-publish: + name: Publish releae on PyPi needs: [build_sdist, build_wheels, build_arm_wheels] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' + environment: release + permissions: + id-token: write + + steps: steps: - uses: actions/setup-python@v5 @@ -139,6 +144,3 @@ jobs: path: dist - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: ${{ secrets.PYPI_USER }} - password: ${{ secrets.PYPI_PASS }}