From 8e795515b14bce8e51db74bdc7dbef9110964df1 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Mon, 21 Aug 2023 11:48:11 +0200 Subject: [PATCH] Use PyPI trusted publishing --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b03c4bba..15088cc9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,14 +34,14 @@ jobs: name: Deploy packages needs: [build_wheels] runs-on: ubuntu-22.04 + environment: release + permissions: + id-token: write if: github.event_name == 'release' && github.event.action == 'published' steps: - uses: actions/download-artifact@v2 - uses: pypa/gh-action-pypi-publish@v1.8.10 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} docs: needs: upload_packages