diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index d57390fbb..6efc71cd8 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -326,6 +326,7 @@ jobs: name: Upload package to GitHub Releases & PyPI permissions: contents: write + id-token: write needs: - lint - test-and-build @@ -333,6 +334,9 @@ jobs: - test-interfaces - test-muscle5 runs-on: ubuntu-latest + environment: + name: publish + url: https://pypi.org/p/biotite steps: - uses: actions/download-artifact@v4 with: @@ -347,10 +351,8 @@ jobs: with: files: dist//* - name: Upload to PyPI - uses: pypa/gh-action-pypi-publish@v1.9.0 + uses: pypa/gh-action-pypi-publish@v1 if: github.event_name == 'release' && github.event.action == 'published' - with: - password: ${{ secrets.PYPI_TOKEN }} upload-ccd: