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 }}