From a20a7f1d55d4e4b72a0dffcf8978681c353019cb Mon Sep 17 00:00:00 2001 From: Eduardo Rodrigues Date: Tue, 7 May 2024 12:05:51 +0200 Subject: [PATCH] [ci] Move to trusted publishers (#193) --- .github/workflows/cd.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6837376..9606601 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -32,6 +32,9 @@ jobs: needs: [dist] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' + environment: pypi + permissions: + id-token: write steps: - uses: actions/download-artifact@v4 @@ -40,5 +43,3 @@ jobs: path: dist - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.pypi_password }}