Skip to content

Commit 38c0543

Browse files
One time API Key
1 parent 2dec7cf commit 38c0543

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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
@@ -75,3 +78,7 @@ jobs:
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

0 commit comments

Comments
 (0)