Skip to content

Commit 8101ed8

Browse files
authored
Use the trusted publisher workflow (#33)
1 parent 25cf031 commit 8101ed8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/publish-pypi.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
15+
repository-projects: write
16+
contents: write
17+
pages: write
1318

1419
steps:
1520
- uses: actions/checkout@v4
@@ -45,8 +50,6 @@ jobs:
4550
run: |
4651
python -m tox -e clean,build
4752
48-
- name: Publish package
49-
uses: pypa/[email protected]
50-
with:
51-
user: __token__
52-
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

Comments
 (0)