Skip to content

Commit 44ec7bc

Browse files
committed
ci: run publish job in pypi environment for trusted publishing
PyPI trusted publisher is configured with environment name 'pypi', but the job did not declare it, so the OIDC token's environment claim was MISSING and uploads were rejected with invalid-publisher.
1 parent ac4ed0a commit 44ec7bc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
environment: pypi
1011
permissions:
1112
contents: read
1213
id-token: write

0 commit comments

Comments
 (0)