diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7f5591d..6bfe4b9 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -11,12 +11,13 @@ jobs: pypi-publish: name: upload release to PyPI runs-on: ubuntu-latest - environment: publish + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release permissions: + # IMPORTANT: this permission is mandatory for trusted publishing id-token: write steps: + # retrieve your distributions here + - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - username: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file