From d4e613751be07e74cbf61cf7cef57b54e652ac6d Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 13 Jun 2023 15:34:53 +0200 Subject: [PATCH] switch to OIDC publishing for PyPI --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83c21542..ce933df4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,14 +119,14 @@ jobs: deploy: uses: mhils/workflows/.github/workflows/python-deploy.yml@main - needs: [test, build] + needs: check if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + permissions: + id-token: write with: artifact: wheels # repository: testpypi # environment: deploy-testpypi - secrets: - password: ${{ secrets.PYPI_TOKEN }} check: if: always()