diff --git a/.github/workflows/py-publish.yaml b/.github/workflows/py-publish.yaml index d7ca822..587fcf8 100644 --- a/.github/workflows/py-publish.yaml +++ b/.github/workflows/py-publish.yaml @@ -19,6 +19,9 @@ jobs: deploy: runs-on: ubuntu-latest + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v3 @@ -34,5 +37,3 @@ jobs: run: python -m build - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }}