We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8b26d5 commit d64911dCopy full SHA for d64911d
.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/gh-action-pypi-publish@v1.12.2
- 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
.github/workflows/run-tests.yml
@@ -4,6 +4,7 @@ on:
4
push:
5
branches: [master]
6
pull_request:
7
+ branches: [master]
8
9
0 commit comments