Repository navigation
Build the docs site in parallel and validate it on every PR - #5772
Conversation
The Pages workflow built the docs and all three WASM apps serially in one job, and only built PRs with the automation/staging label. When the Uno 7 migration broke the Uno Gallery smoke test (#5771), nothing caught it on the PR and every main run since has failed, so the docs stopped publishing. Split the build into setup, docs, wasm-natives, an app matrix and a quick assemble job. Each app uploads its output only after it builds and passes its smoke test; assemble copies whichever apps exist and warns about any that are missing. Every PR, including forks, now builds and smoke-tests the site and fails on any error. Publishing still requires a same-repo PR with automation/staging, or a push/dispatch. On main, app jobs are continue-on-error so a broken app is omitted rather than blocking the docs. Relates to #5771 Co-authored-by: Copilot App <[email protected]>
|
📖 Documentation Preview Every PR builds and smoke-tests the site. Add the Removing the label removes the preview. While the label is present, each new commit updates it. This comment is automatically updated by the documentation staging workflow. |
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5772PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5772"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-5772/packages --name skiasharp-pr-5772More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5772 |
Build every PR event, including forks and label changes. Only publish production from main or staging for explicitly labeled same-repository PRs, and require successful app builds before publishing a PR preview.\n\nGate Go Live on the upstream publishing job rather than workflow success so validation-only and dry-run builds do not redeploy Pages. Co-authored-by: Copilot App <[email protected]>
📊 SkiaSharp benchmarks — PR #5772⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 39 slower · 🟢 38 faster
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
There was a problem hiding this comment.
🟡 Changes recommended
Critical workflow flaws can mix build revisions, let non-publishing runs displace queued deployments, and allow cancelled runs to publish.
3 open issues
What changed in this PR
This PR separates site validation from publishing so every PR, including forks, builds the documentation and apps. It allows production docs to publish when an app fails; the Uno layout repair remains separate in #5771.
Changes:
- Splits the site build into setup, DocFX, shared WASM natives, parallel app builds, assembly, and deployment.
- Restricts publishing by source and preview policy, and gates Go Live on a successful upstream publishing job.
- Documents the build policy and two-stage publishing process.
| File | Description |
|---|---|
documentation/dev/site.md |
Documents site components, validation rules, and publishing stages. |
.github/workflows/build-site.yml |
Separates parallel builds, artifact assembly, and conditional deployment. |
.github/workflows/build-site-go-live.yml |
Checks the upstream publishing job before deploying GitHub Pages. |
Review effort: Balanced
| deploy: | ||
| needs: check | ||
| if: needs.check.outputs.publish == 'true' |
| is_staging: ${{ steps.vars.outputs.is_staging }} | ||
| pr_number: ${{ steps.vars.outputs.pr_number }} | ||
| publish: ${{ steps.vars.outputs.publish }} | ||
| checkout_ref: ${{ steps.vars.outputs.checkout_ref }} |
| group: "docs-deploy-${{ needs.setup.outputs.is_staging == 'true' && format('pr-{0}', needs.setup.outputs.pr_number) || 'main' }}" | ||
| cancel-in-progress: true | ||
| if: | | ||
| always() && |

Description
The docs site stopped publishing after the Uno 7 migration. Push builds fail at the Uno Gallery WASM smoke test, which expects the removed
package_*/uno-config.jslayout (#5771). PRs did not catch this because the complete site was built only for same-repository PRs withautomation/staging; the migration came from a fork and its site check was skipped.Separate validation from publishing and build the docs and apps in parallel:
setupcomputes variables and whether publishing is allowed. Every PR event builds, including forks and label changes; the staging label controls deployment, not validation.docsbuilds DocFX without checking out submodules or building native libraries.wasm-nativesbuilds the WASM native libraries once, then anappmatrix publishes Gallery (Blazor), Gallery (Uno Platform), and SkiaFiddle. Each app uploads its output only after publishing and any configured smoke test succeed.assemblecombines the docs and successful app artifacts, warning about missing apps.deploywrites production content or a PR preview todocs-liveonly when publishing is allowed and the run is not a dry run. PR previews also require successful app builds.docs-liveto GitHub Pages. A successful validation-only run or dry run no longer redeploys the site. It checks the completed run attempt, including reruns; missing publishing jobs or API errors fail explicitly.Publishing policy:
mainautomation/stagingmain, or an explicitly selected labeled same-repository PR previewOn
mainand manual dispatch, failed app/native builds remain non-blocking: omit unavailable apps so the docs can still publish. DocFX failures always block publication. On PRs, app/native failures fail the workflow rather than being ignored. Requiring these checks for merge remains a separate branch-protection configuration change; this PR does not change repository protection.Cleanup workflows continue to republish
docs-livewhen removing previews. Manual Go Live is restricted tomain. Fork PRs retain read-only build permissions; GitHub may require approval before running workflows for new external contributors.The Go Live change takes effect after this PR lands on the default branch. The Uno 7 smoke-test/layout repair is separate: until #5771 is fixed, Uno app checks are expected to fail on PRs and failed apps will be omitted from production.
Update
documentation/dev/site.mdwith the build/deploy policy and both publishing stages.Related issues
Related to #5771
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
None — workflow and developer documentation only; no public API or runtime behavior changes.
Testing
git diff --check— passed.actionlint -shellcheck='' .github/workflows/build-site.yml .github/workflows/build-site-go-live.yml— passed. Shellcheck is disabled for this syntax/expression validation; the existing deployment shell scripts are not being rewritten.Deployjob metadata match the Go Live gate.Checklist
Changesabove lists all public API and behavioral changes (or "None.")///documentation and regenerated bindings when applicablemono/skiaPR linked above and bindings regenerated