Skip to content

Commit 8d7cbd0

Browse files
committed
might work
1 parent 26a69cc commit 8d7cbd0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
12-
id-token: write # Required for trusted publishing
12+
id-token: write # Required for Trusted Publishing
13+
environment:
14+
name: pypi # Optional but recommended
1315

1416
steps:
1517
- name: Check out the code
@@ -31,4 +33,4 @@ jobs:
3133
- name: Publish to PyPI
3234
uses: pypa/gh-action-pypi-publish@release/v1
3335
with:
34-
password: ${{ secrets.PYPI_API_TOKEN }}
36+
attestations: true # Optional

0 commit comments

Comments
 (0)