diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 42814e159..62988c1b3 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -11,6 +11,9 @@ on: jobs: deploy: runs-on: ubuntu-latest + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v3 @@ -39,11 +42,8 @@ jobs: run: | poetry build - - name: Publish on Pip - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: twine upload dist/* + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 build: strategy: