Repository navigation
ci: auto-build UI bundle on merge to main - #52
Conversation
Stop requiring local gulp bundle commits. CI packs the zip on PRs as a check, then publishes it to main after merge and pings Netlify once.
|
Install from the lockfile in CI. If main moved during the build, rebuild from latest main and retry the push instead of rebasing the binary zip.
|
Thanks for the review. Answers below.
|
|
For question 1, here is how an admin can require the Rulesets
If the repo still uses classic branch protection
After that, a red Do this after this PR is merged, so |
|
@ngarakapati After merging #52, the new The failure is in
It comes through Checkout, Node setup, and |
|
The red Fix is in a follow-up PR: pin CI to Node 16 so |
What this is
Today, every Antora UI change also needs a local
gulp bundleand a committedbuild/ui-bundle.zip. Other docs repos only pick up the new look after that zip is onmain.This PR makes CI do the zip step. Docs playbooks do not change. They still load the bundle from GitHub
main. No new secrets. We still use the existing Netlify hook.How it works
On a pull request
gulp bundle.After merge to
maingulp bundleagain.build/ui-bundle.ziptomain, then pings Netlify once.New habit for the team
gulp previewif you want.ui-bundle.zip.main.Follow-up (needs a repo admin)
After this merges, protect
mainand require thebuildcheck so a red PR cannot be merged.Test plan
gulp bundle(not only the Netlify curl).build/ui-bundle.zipif it changed.buildcheck onmainso a red PR cannot merge.