From 292f5d13e5a39c6b2f72bcfd0898586bb1ff16d5 Mon Sep 17 00:00:00 2001 From: Gijs van Tulder Date: Mon, 27 May 2024 17:21:28 +0200 Subject: [PATCH] Update pypi publishing. --- .github/workflows/wheels.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 303eb77..3871f34 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -79,6 +79,9 @@ jobs: runs-on: ubuntu-latest # upload to PyPI on every tag starting with 'v' if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write steps: - uses: actions/download-artifact@v4 with: @@ -86,10 +89,7 @@ jobs: merge-multiple: true path: dist - - uses: pypa/gh-action-pypi-publish@v1.5.0 - with: - user: __token__ - password: ${{ secrets.pypi_password }} + - uses: pypa/gh-action-pypi-publish@release/v1 create_github_release: runs-on: ubuntu-latest