diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4e778f5..923ef87 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -28,6 +28,11 @@ jobs: needs: [dist] runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' + environment: + name: pypi + url: https://pypi.org/p/removestar + permissions: + id-token: write steps: - uses: actions/download-artifact@v3 @@ -35,7 +40,4 @@ jobs: name: artifact path: dist - - uses: pypa/gh-action-pypi-publish@v - with: - user: __token__ - password: ${{ secrets.pypi_password }} + - uses: pypa/gh-action-pypi-publish@release/v1