diff --git a/.github/workflows/deploy-pypi.yml b/.github/workflows/deploy-pypi.yml index 24befc9e5..4279af06e 100644 --- a/.github/workflows/deploy-pypi.yml +++ b/.github/workflows/deploy-pypi.yml @@ -7,6 +7,9 @@ on: jobs: deploy: runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write steps: - uses: actions/checkout@v4 - name: Set up Python @@ -14,9 +17,8 @@ jobs: with: python-version: "3.10" install-dependencies: "false" - - name: Build and publish + - name: Build run: | poetry build - poetry publish - env: - POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1