ci(release): roll every release onto the uom site
All checks were successful
PR Checks / client-build (pull_request) Successful in 37s
PR Checks / server-tests (pull_request) Successful in 47s
PR Checks / frozen-manifest (pull_request) Successful in 52s

A deploy-uom job after the release, on uom-deploy-runner (the runner the
website's own deploy uses). It asks the running core whether it can load
the release (coreApi against MODULE_API_VERSION) and warns and changes
nothing if not; otherwise it rewrites the uo entry of MODULES in the site's
.env in place, recreates only the app container, and waits for core to
register the new version, rolling back to the previous one if it does not.

A redeploy dispatch input publishes nothing and rolls the newest release
out again, for a deploy that was skipped until the site's core caught up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
This commit is contained in:
2026-11-27 14:56:49 -06:00
parent 0e90fd819a
commit 5d408a4ee3
2 changed files with 257 additions and 0 deletions

View File

@@ -158,6 +158,17 @@ For a change with nothing releasable behind it — a widened `coreApi`, a new mo
run the **Release** workflow by hand (Actions → Release → Run workflow). Leave `version` blank to
bump the newest tag by `bump` (default `patch`), or type an exact version to publish that.
**Every release then rolls onto the uom site** — the `deploy-uom` job, the module's twin of the
website's own deploy, on the same `uom-deploy-runner`. It asks the running core whether it can load
the release (`coreApi` against `MODULE_API_VERSION`); if it cannot, it warns and changes nothing.
Otherwise it rewrites the `uo@…` entry of the `MODULES` line in the site's `.env` (appending the line
if there is none; other entries are kept), recreates only the app container, and waits for core to
log `registered module "uo" v<version>`. If that does not come, it declares the version that was
running before, recreates again, and fails. **Run workflow** with `redeploy = true` publishes nothing
and rolls the newest release out again — for a deploy that was skipped until the site's core caught
up. The site directory defaults to `/home/perry/website`; the Actions variable `UOM_SITE_DIR`
overrides it.
Each release carries:
| Asset | What it is |