Skip to content

Commit 2c3c069

Browse files
authored
feat(ci): rebuild packages.wheels.dev on manifest merges (#2)
1 parent 0dc4ce7 commit 2c3c069

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/notify-site.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Notify wheels.dev site
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'packages/**'
8+
- 'schema/**'
9+
10+
jobs:
11+
notify:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Fire repository_dispatch at wheels-dev/wheels
15+
env:
16+
GH_TOKEN: ${{ secrets.NOTIFY_WHEELS_TOKEN }}
17+
run: |
18+
gh api repos/wheels-dev/wheels/dispatches \
19+
--method POST \
20+
--field event_type=registry-updated \
21+
--field "client_payload[source_commit]=${GITHUB_SHA}"

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,17 @@ Maintainers look at:
5252
## Getting help
5353

5454
Open an issue on this repo or ping `#wheels-packages` on Discord.
55+
56+
## Site rebuild trigger
57+
58+
Merging a PR that changes `packages/**` or `schema/**` on `main` automatically
59+
rebuilds [packages.wheels.dev](https://packages.wheels.dev) via a
60+
`repository_dispatch` event fired at `wheels-dev/wheels`. The trigger is
61+
implemented in [`.github/workflows/notify-site.yml`](.github/workflows/notify-site.yml)
62+
and requires a repository secret named `NOTIFY_WHEELS_TOKEN` — a fine-grained
63+
PAT scoped to `wheels-dev/wheels` with `contents: write`.
64+
65+
If a registry merge does not rebuild the site within a few minutes:
66+
1. Check the `Notify wheels.dev site` workflow run in this repo's Actions tab.
67+
2. If it succeeded, check the `Deploy static sites` workflow in `wheels-dev/wheels`.
68+
3. If the notify workflow failed with a 401/403, the PAT has likely expired — rotate and update the secret.

0 commit comments

Comments
 (0)