We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee21585 commit f209c3eCopy full SHA for f209c3e
.github/workflows/autodeploy.yml
@@ -70,6 +70,9 @@ jobs:
70
needs: [build_wheels, build_sdist]
71
runs-on: ubuntu-latest
72
if: github.event_name == 'release' && github.event.action == 'published'
73
+ permissions:
74
+ # IMPORTANT: this permission is mandatory for trusted publishing
75
+ id-token: write
76
steps:
77
- uses: actions/download-artifact@v4
78
with:
@@ -79,7 +82,5 @@ jobs:
79
82
80
83
- name: Publish package on PyPI
81
84
uses: pypa/gh-action-pypi-publish@release/v1
- with:
- user: __token__
- password: ${{ secrets.PYPI_API_TOKEN }}
85
- verbose: true
+ # With the use of OIDC, API tokens are no longer needed
86
+ # See https://docs.pypi.org/trusted-publishers/using-a-publisher/ for more info
0 commit comments