Skip to content

Commit 70b6aae

Browse files
Merge pull request #117 from Create-Python-App/fix/58-pypi-oidc
ci: PyPI Trusted Publishing OIDC job (#58)
2 parents a7269a3 + 714f521 commit 70b6aae

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@ jobs:
3232
files: dist/*
3333
- name: Publish to PyPI (OIDC)
3434
if: startsWith(github.ref, 'refs/tags/')
35-
run: echo "PyPI trusted publishing wired in #58 — placeholder job"
35+
uses: pypa/gh-action-pypi-publish@release/v1
36+
with:
37+
packages-dir: dist/

docs/DISTRIBUTION_SETUP.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ Secrets and publishers (see also #58–#63):
88
| Docker Hub | `DOCKERHUB_USERNAME`, `DOCKERHUB_TOKEN` |
99
| AUR | `AUR_SSH_PRIVATE_KEY`, `AUR_REPO_TOKEN` |
1010
| Homebrew | `HOMEBREW_TAP_TOKEN` |
11+
12+
## PyPI Trusted Publishing
13+
14+
1. Create a Trusted Publisher on PyPI for `create-awesome-python-app`
15+
2. Repository: `Create-Python-App/create-python-app`
16+
3. Workflow: `publish.yml`
17+
4. No `PYPI_TOKEN` secret required when using OIDC

0 commit comments

Comments
 (0)