File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,18 @@ jobs:
5252 with :
5353 name : release-dists
5454 path : dist/
55-
5655 pypi-publish :
5756 runs-on : ubuntu-latest
5857 needs : release-build
5958
59+ # For first publication only, we'll use an API token
60+ # After the initial release, switch back to trusted publishing
6061 permissions :
6162 # This permission is mandatory for trusted publishing
6263 id-token : write
6364
65+
66+
6467 # Protected environment for publishing
6568 environment :
6669 name : pypi
7578
7679 - name : Publish release distributions to PyPI
7780 uses : pypa/gh-action-pypi-publish@release/v1
81+ with :
82+ password : ${{ secrets.PYPI_API_TOKEN }}
83+ # Remove this parameter after first successful publication
84+ # and uncomment the permissions block below
You can’t perform that action at this time.
0 commit comments