diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index bdaab28..5b9b786 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -19,6 +19,12 @@ jobs: deploy: runs-on: ubuntu-latest + + environment: + name: pypi + url: https://pypi.org/p/rng_rava + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - uses: actions/checkout@v3 @@ -33,7 +39,4 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1