Release workflow: preflight host prerequisites, atomic push, pinned Git Bash; checklist recovery and exec bits; define player-visible

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-11-25 20:41:04 +01:00
commit fc9d8702fe
3 changed files with 40 additions and 13 deletions

View file

@ -15,16 +15,26 @@ nothing. A published version is never edited; a mistake is a new version.
1. Check the change files on the branch read as the changelog you want.
2. Dispatch the `release` workflow on that branch (Actions tab). It runs on Starfire, one job at a time. It prepares the
release, builds win64 then linux64, and only then pushes the `Release X.Y.Z` commit and tag `vX.Y.Z` and publishes.
release, builds win64 then linux64, and only then pushes the `Release X.Y.Z` commit and tag `vX.Y.Z` (one atomic push)
and publishes. The first step checks every host prerequisite and fails before any build or push. The first release this
pipeline makes is v0.2.1.
3. Check the forge release: the notes match the CHANGELOG section, and `Aetheria-X.Y.Z-win64.zip` and `-linux64.zip` are
attached. Unpack both and launch. The zips are made on Windows, so on Linux run `chmod +x Aetheria.x86_64` first.
4. Mirroring to GitHub is by hand if wanted; there is no GitHub automation.
attached. Unpack both and launch. The zips are made on Windows and lose the exec bit, so on Linux run
`chmod +x Aetheria.x86_64 ModTools/AetherDb` first (those are the only executables in the linux64 player).
4. If the run fails after the push (the forge release step), the commit and tag are already on the forge and the build
directory `../release-<run id>` is kept on Starfire. Do not rerun: the tag exists and the change files are consumed.
Create the release by hand on tag `vX.Y.Z`, paste the CHANGELOG section as notes, attach the two zips from that
directory's `dist/`, then delete the directory. A failure before the push needs only a rerun (delete the leftover build
directory).
5. Mirroring to GitHub is by hand if wanted; there is no GitHub automation.
## One-time setup (operator acts)
- Register the runner on Starfire with label `starfire` in host mode, capacity 1, running as the operator's Windows user
(follow-up `starfire-forge-runner`); install knope on that user's PATH.
- Repo secret `RELEASE_TOKEN` (write:repository); repo variable `UNITY_EDITOR` (Unity.exe, 6000.3.24f1); optional variables
`CULTLIB_ROOT` and `CULTMATH_ROOT` when the default CultLib checkouts do not hold the pinned revisions.
(follow-up `starfire-forge-runner`). Runner prerequisites, all checked by the workflow's preflight: Git for Windows at
`C:\Program Files\Git` (the workflow pins its `bash.exe`), and on PATH `knope`, `jq` and `curl` (both needed by the forge
release action), `git`, `dotnet` (publishes AetherDb) and `tar`; `C:\Windows\System32 ar.exe` makes the zips.
- Repo secret `RELEASE_TOKEN` (write:repository); repo variables `UNITY_EDITOR` (Unity.exe, 6000.3.24f1), and `CULTLIB_ROOT`
and `CULTMATH_ROOT` (checkouts holding the pinned CultLib and CultMath revisions). All are required.
- Ruling `sbsar-lfs-objects`: prune the 41 `.sbsar` LFS objects from Forgejo's LFS store and the Raven LFS mirror. Git
history keeps its pointers. This is an operator act, not the workflow's.