From ae05017bb38c2878d52e0ead8987e5dda4ab2fc6 Mon Sep 17 00:00:00 2001 From: Ralph Urlus Date: Thu, 25 Apr 2024 21:00:30 +0200 Subject: [PATCH] CICD: Switch to trusted publisher based release --- .github/workflows/wheels.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 3389c34..76fbe4d 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -125,11 +125,14 @@ jobs: name: artifact-macos-arm path: wheelhouse/*.whl - upload_all: - name: Upload if release + pypi-publish: + name: Publish release 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: - uses: actions/setup-python@v5 @@ -143,5 +146,3 @@ jobs: - uses: pypa/gh-action-pypi-publish@v1.8.14 with: skip_existing: true - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}