Skip to content

Commit 482742c

Browse files
committed
Fix PyPI trusted publishing workflow config
1 parent 82fc7c0 commit 482742c

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/release.yml

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

docs/release.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ This repository includes:
5656

5757
The release workflow expects PyPI publishing to be configured for trusted publishing or equivalent repository credentials.
5858

59+
For the checked-in GitHub Actions workflow, the trusted-publishing environment name is `pypi`.
60+
If PyPI does not have a matching trusted publisher for:
61+
62+
- owner: `oceanusXXD`
63+
- repository: `code2skill`
64+
- workflow: `.github/workflows/release.yml`
65+
- environment: `pypi`
66+
67+
then the `Publish to PyPI` step will fail even when build and metadata checks succeed.
68+
5969
## Manual Release Safety Notes
6070

6171
- do not use `twine upload dist/*` if `dist/` contains artifacts from multiple versions

0 commit comments

Comments
 (0)