Repository navigation
ci(docs): build the docs site from a workflow with a docs filter - #4801
Conversation
The legacy Pages build of main:/docs runs 3 jobs on each push to main, also when the push changes no file under docs/. pages.yml builds and deploys docs/ with the official Pages actions only on a push to main that changes docs/ or the workflow, and on a manual run.
|
Owner step: set the Pages source to GitHub Actions Only a person changes repository settings, so this PR does not change the source.
Order. You can do the step before or after the merge.
Check after the switch.
|
|
Measurements (Actions API) Window: 2026-11-04 00:00 UTC to 2026-11-11 19:37 UTC (7.8 days). Script: list the runs of the dynamic workflow Before (legacy build of
After (expected, after the owner switch)
The runner time of a Checks on this branch
|
|
After the merge: first run of the Run 43107855142, push of merge commit
The saving starts when the owner does the step in the comment above (Pages source: GitHub Actions). |
Add
.github/workflows/pages.yml, which buildsdocs/and deploys it to GitHub Pages with the official Pages actions, pinned by commit SHA. It runs on a push tomainthat changesdocs/or the workflow, and on a manual run. Only the deploy job can write to Pages.The legacy Pages build of
main:/docsruns 3 jobs on each push tomain, also when the push changes no file underdocs/. The account runs at most 20 hosted jobs at one time, so each such job makes the queue of each pull request longer. When the owner sets the Pages source to GitHub Actions, a merge that changes no site file starts no Pages job.docs/SDLC.md, the head ofdocs/_config.ymland an amendment line in ADR 0012 now name the workflow as the builder of the site.Closes #4656
Change:
openspec/changes/archive/2026-11-11-4656-build-the-docs-site-from-a/