ci(release): roll every release onto the uom site
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:
11
README.md
11
README.md
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user