Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -14,6 +14,7 @@ concurrency:
jobs:
release:
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: write
id-token: write
Expand Down
25 changes: 18 additions & 7 deletions docs/DISTRIBUTION_SETUP.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,20 +13,31 @@

## PyPI Trusted Publishing

Configure **two** pending Trusted Publishers on PyPI (same workflow publishes both packages):
The Release job uses the GitHub Actions environment **`pypi`**
(Settings → Environments). Configure **two** pending Trusted Publishers on PyPI
(same workflow publishes both packages):

### `create-python-app-core`

1. Owner: `Create-Python-App`
2. Repository: `create-python-app`
3. Workflow: `publish.yml`
4. Environment: (leave empty unless you use one)
| Field | Value |
|-------|--------|
| PyPI Project Name | `create-python-app-core` |
| Owner | `Create-Python-App` |
| Repository name | `create-python-app` |
| Workflow name | `publish.yml` |
| Environment name | `pypi` |

### `create-awesome-python-app`

Same owner/repo/workflow as above.
| Field | Value |
|-------|--------|
| PyPI Project Name | `create-awesome-python-app` |
| Owner | `Create-Python-App` |
| Repository name | `create-python-app` |
| Workflow name | `publish.yml` |
| Environment name | `pypi` |

On the first tag `create-awesome-python-app@0.1.0`, OIDC creates the projects and uploads sdists/wheels for both packages.
On the first successful publish for tag `create-awesome-python-app@0.1.0`, OIDC creates the projects and uploads sdists/wheels for both packages.

## Cutting a release

Expand All@@ -40,8 +51,8 @@
git push origin create-awesome-python-app@0.1.0
```

5. Confirm the Release workflow published both packages

Check failure on line 54 in docs/DISTRIBUTION_SETUP.md

View workflow job for this annotation

GitHub Actions/ markdownlint

Ordered list item prefix

docs/DISTRIBUTION_SETUP.md:54:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 5; Style: 1/2/3] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md029.md
6. Smoke: `uvx create-awesome-python-app@0.1.0 --help`

Check failure on line 55 in docs/DISTRIBUTION_SETUP.md

View workflow job for this annotation

GitHub Actions/ markdownlint

Ordered list item prefix

docs/DISTRIBUTION_SETUP.md:55:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 6; Style: 1/2/3] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md029.md

## Docker Hub

Expand Down
Loading