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 25cf031 commit 8101ed8Copy full SHA for 8101ed8
.github/workflows/publish-pypi.yml
@@ -10,6 +10,11 @@ on:
10
jobs:
11
build:
12
runs-on: ubuntu-latest
13
+ permissions:
14
+ id-token: write
15
+ repository-projects: write
16
+ contents: write
17
+ pages: write
18
19
steps:
20
- uses: actions/checkout@v4
@@ -45,8 +50,6 @@ jobs:
45
50
run: |
46
51
python -m tox -e clean,build
47
52
48
- - name: Publish package
49
- uses: pypa/[email protected]
- with:
- user: __token__
- password: ${{ secrets.PYPI_PASSWORD }}
53
+ # This uses the trusted publisher workflow so no token is required.
54
+ - name: Publish to PyPI
55
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments