Releasing
The maintainer’s runbook: how hi ships through each package manager, what a v* tag sets off, the settings that gate it, and regenerating the demo GIFs. Installing, verifying a download, and what a package leaves the user to do are PACKAGING.md. Nothing publishes without an intentional act: a signed v* tag only you can push, a PR you merge, or a dispatch by hand.
Contents
- The one idea
- Layout
- Channels weighed and not shipped
- Cutting a release
- Publishing each channel
- Verifying a packaged build locally
- Regenerating the demo GIFs
The one idea
hi.sh locates itself: it walks $0 through symlinks and takes the tree from where it lands, so /usr/bin/hi pointing into a package prefix resolves on its own (GLOSSARY: HI.33), and everything resolves against $_HI_ROOT="$_HI_HOME/say-hi". A channel owes two things: the tree in a directory literally named say-hi, and _HI_HOME exported as that directory’s parent, because a new process with no tree to derive from (a login shell, tmux’s update-environment, another machine’s hi probing this one) has nothing else to read.
| channel | tree | how _HI_HOME gets set |
|---|---|---|
| AUR, deb, rpm, apk | /usr/share/say-hi | /etc/profile.d/say-hi.sh, written by install_tree |
| Homebrew | <keg>/libexec/say-hi | the bin/hi wrapper, plus the rc line install.sh writes |
| nix | <out>/share/say-hi | the bin/hi wrapper, plus the home-manager module’s block |
scripts/install.sh --prefix /usr/share (with $DESTDIR) does all of this; its _HI_PACKAGE_CONTENTS and install_tree() decide what a packaged install contains, and the AUR PKGBUILDs, mkpkg.sh, and the flake’s package (Nix flake) all call it. The Homebrew formula repeats the list, because install_tree hardcodes /usr/bin and /etc/profile.d and neither exists in a brew prefix, and tests/packaging/packaging_ci_test.sh (the packaging_ci suite, ci group) fails if the two drift.
Layout
FILES.md’s packaging/ lists what lives there.
The version stamp. stamp.sh writes _HI_RELEASE= into the installed hi.sh and the version into the man page’s .TH line. It cannot live in git: bump.sh runs only after the tag exists (its checksums need the tarball), so a committed stamp would always be one release stale in the tarball Homebrew and the AUR build from; a checkout answers hi --version with git describe. The formula passes --date <version>, having no SOURCE_DATE_EPOCH, and the flake passes its commit’s date; stamp.sh refuses to guess one. packaging_test.sh guards all of it.
Channels weighed and not shipped
nixpkgs: not submitted yet. The flake in this repository is the nix channel (Nix flake); nixpkgs, where nix users look first, wants upstream review and a standing maintainer entry, so it waits on 1.0 (the roadmap’s Release Stages).
Homebrew core: not eligible yet. Homebrew’s acceptance policy asks a project its author submits for 90 forks, 90 watchers, or 225 stars, and core takes only a release upstream calls stable. The tap is the Homebrew channel until both hold.
FreeBSD ports: not submitted. A port is a Makefile and distinfo over the release tarball with a MAINTAINER, sent as a [NEW PORT] diff to the FreeBSD Bugzilla. freebsd-e2e.yml already proves the userland, and until a port lands a FreeBSD user installs from a clone.
Alpine aports: not submitted. A new APKBUILD goes to alpine/aports as a merge request on Alpine’s GitLab, lands in testing, and moves to community once it has a maintainer. The package repository already serves a signed apk.
Fedora Copr and the openSUSE Build Service: not set up. Each needs an account (Copr a Fedora Account System one) and builds from a spec file, which this repository does not keep: nfpm makes the rpm. Both would serve what the package repository already does, and their gain is being found (dnf copr enable, software.opensuse.org); the Build Service would add openSUSE builds and debs for other distributions.
Scoop: not set up. A bucket is a git repository of JSON manifests, installed on the Windows side, while hi runs under Git Bash, whose rc a manifest would have to wire; a Git Bash client installs from a clone today (COMPATIBILITY.md).
Cutting a release
The tag never moves: the manifests carry checksums of a tarball that cannot exist before the tag does, so the workflow does the bump. That tarball is one the release builds, not GitHub’s /archive/ one (nothing could be signed over it): packaging/srctar.sh writes a git archive --prefix say-hi-<version>/ of the tag, and that one file is what bump.sh checksums, what mkpkg.sh lists in SHA256SUMS/ARTIFACTS, and what the release attaches.
- Tag a commit on
main, with nothing to commit first:git tag -s v1.0.0 -m v1.0.0 && git push origin v1.0.0—release.ymlstarts. - The
gatejob refuses a tag that is notvX.Y.ZorvX.Y.Z-<pre>, whose commit is not onmain, that is lightweight or not signed by a key in.github/allowed_signers(Signing the tag), or whoseci.ymlpush run onmaindid not conclude success (it waits for a run still going). A red or missing run means fixmainand cut a new tag. Once it passes, theupgradejob walks HI.60 from the previousv*tag: a bash, zsh, and fish shell each load that release’s rc, the tag’s tree replaces it underneath, and the rc is sourced again (.github/scripts/upgrade_path.sh); any stderr, or a path left empty, refuses the build. - The
buildjob buildssay-hi-1.0.0.tar.gzfrom the tag and runsbump.sh --tarball <that file> 1.0.0(writespkgver,b2sums, the formulaurl/sha256, and the derivable.SRCINFOlines) in its own disposable checkout, never committed, thenbump.sh --check. The ci group (the packaging drift guards, now against the bumped manifests) and the lint group run next; then it builds the deb/rpm/apk with oneSHA256SUMSover them and the tarball, and attests their provenance and an SBOM. Nothing has published. - The
publishjob runs unattended over exactly whatbuildproduced (see The release environment): it signsSHA256SUMSwith minisign, creates the release as a draft, attaches the packages, tarball, sums, signature, manifests, SBOM, attestation bundle, and thedemojob’sdemo.gif, builds and attaches the package repository, and only then publishes it: with immutable releases on, a published release takes no asset. It then dispatchesdemos.yml, which renders the demos and redeploys the site once - new package repository and new GIFs together (pages.yml’s ownworkflow_runtrigger cannot fire off a tag push, and a merge’s Coverage deploy stands down for a commit av*tag already carries). This workflow never writes tomain, so the manifests committed inpackaging/aur/andpackaging/homebrew/stay permanentv0.0.0templates — for a channel, always use the ones the release attached (gh release download v1.0.0 --pattern …). brewinstalls, tests, and audits the formula on a hosted mac, and when it passes,tapopens a PR against the tap (Homebrew tap), which auto-merges once the tap’s CI passes.- Once
AUR_SSH_KEYexists, dispatchpublish-external.ymlwithtag: v1.0.0to push the AUR, a separate, later, manual step. It reads the manifest off the release itself, never the template. Until the key exists, copy the manifest by hand per AUR.
A rehearsal — dispatching release.yml with a version — runs gate (waiting on manual-dispatch approval), upgrade, and build against the branch’s HEAD, which needs no signed tag, and publishes nothing; build signs the rpm and apk with the real keys, as a release does.
A release candidate is a GitHub Release and nothing more. A tag with a - (v1.0.0-rc.1) runs steps 1-4, is created --prerelease --latest=false so “the latest release” (README’s badge, the package repository) never resolves to it, and skips the Pages redeploy, since the newest non-prerelease release is unchanged. brew, tap, and aur skip it, as they skip a v0.0.x debug tag: 0.1.0-rc.1 is valid semver (nfpm’s version_schema accepts it; the deb sorts as 0.1.0~rc.1) but not a legal pkgver (- is makepkg’s pkgver-pkgrel separator).
bump.sh 1.0.0 works by hand if CI is unavailable: with the tag in your checkout it builds the identical tarball itself, --tarball <file> takes one you have, and it downloads the published asset only when neither is available (during a release the asset does not exist yet). bump.sh --check 1.0.0 confirms the manifests match a cut release.
Cutting the tag is the whole release: no step, in this workflow or any other, may ask for more. The gate never reads the changelog, and nothing is ever run for it. The release body’s “What changed” is built at publish (.github/scripts/changelog.sh): the PRs’ ## Release note sections, then the sentences CHANGELOG.md holds that the last published release’s copy does not. The list sits at the top of the body, above the generated titles of the PRs merged since the last tag (releases/generate-notes) and the verification checklist. A section reading none contributes nothing; a release with no notes falls back to the titles.
release-note.yml (the release note (pr body) check, re-run on each body edit) warns on any non-draft PR into main, dev → main included and only Dependabot’s exempt, whose section is missing or holds only whitespace and comments; it never fails, so a missing note never holds a merge or a release. The release reads the bodies as they are at the tag.
The body opens with the tag’s own badges. README’s tests and bashcov badges track the newest green main; the release body freezes the same two figures at the tag, looked up by its commit’s sha (.github/actions/fetch-latest-artifact with head-sha). A figure that is not there (a tag cut before the sweep finished, an artifact past its retention) reads unknown in grey rather than failing the release. Only a release the run creates gets them: an existing body is never rewritten.
Signing the tag
Tags are SSH-signed (gpg.format=ssh), and the trust root is .github/allowed_signers: four SSH keys, each one of the maintainer’s signing keys registered on GitHub. The gate job runs git tag -v against that file as of the tagged commit, which it has already required to be on main, with the global and system git configs ignored. Checking a tag locally before pushing it is the same command:
git -c gpg.ssh.allowedSignersFile=.github/allowed_signers tag -v v1.0.0
Rotating a key: merge the new key’s line to main before the commit you tag with it — a tag on an older commit reads that commit’s copy and is refused. Drop a retired key only once no tag still to be released needs it.
The release environment
Two environments under Settings → Environments, five secrets, and one release setting, none of which a file in the tree can set; the workflows only name them.
release— whatrelease.yml’spublish(andbuild, on a tag push) andpublish-external.yml’saurrun in.tapruns behindpublishand needs no gate of its own: it opens a PR. Required reviewers: none - the gates are the tag protection onv*(whoever can push the tag has made the decision) and thegatejob, so a release runs unattended from tag to tap PR; a reviewer here is what would pause it. Deployment branches and tags: a tag rule,v*, forbuildandpublishon the tag ref (a policy listing onlymainrefuses every release atbuild), plusmain, or whereverauris dispatched from, since a dispatch runs on a branch. The rule is checked when the job starts, so once it is fixed Re-run failed jobs goes straight through; no new tag is needed.manual-dispatch— the rehearsal gate:gateruns in it on aworkflow_dispatchonly, so a tag push never waits on it. Required reviewers: you, or a rehearsal starts a build with nobody asked. A branch rulemainfits.MINISIGN_SECRET_KEY,APK_SIGNING_KEY,GPG_SIGNING_KEY,AUR_SSH_KEY,HOMEBREW_TAP_TOKEN— repository secrets, all in one place; the environments hold none, since an environment secret shadows a repository one of the same name. Only the steps that sign or push name them, and a rehearsal’sbuildsigns with the real keys. Each is optional and its step skips loudly without it. The package keys are Package repository’s What signs what;HOMEBREW_TAP_TOKENis a fine-grained PAT scoped to the tap repo with contents and pull-requests write.- Immutable releases (Settings → General → Releases) — on, a published release’s tag and assets are locked and it carries an attestation.
publishattaches every asset to a draft and publishes last for that reason; the body stays editable, whichtaprelies on.
Storing, reaching, and rotating them. A secret lives only as a GitHub repository secret and in the maintainer’s offline copy of the key files, never in the tree: push protection and quick lint’s gitleaks are the backstop. Only the maintainer can read or set one (GOVERNANCE.md), and a workflow names it only in the step that signs or pushes, under harden-runner’s block. HOMEBREW_TAP_TOKEN carries an expiry of 90 days at most and is replaced before it lapses. A signing key is replaced when it is lost or may have leaked: generate the pair as above, merge its public half to main before the next tag, update the secret, and have that release’s notes tell subscribers to re-fetch say-hi.asc or say-hi.rsa.pub.
MINISIGN_SECRET_KEY’s value is the whole minisign.key file minisign -G -W writes: both lines, unwrapped and unindented, or the signing step fails. Generate it with -W, or the runner, having no tty, stops at Password: (minisign -C -W -s minisign.key strips a passphrase from an existing pair). Before pasting, check the file signs and matches the public key PACKAGING.md publishes:
minisign -R -s minisign.key -p /tmp/check.pub &&
diff <(sed -n 2p /tmp/check.pub) \
<(sed -n "s/^minisign -Vm SHA256SUMS -P '\([^']*\)'.*/\1/p" docs/PACKAGING.md)
A different pair means a new key on that line in the same commit, since publish reads the key out of it.
Hardening the release jobs
Every job in release.yml and publish-external.yml runs on a GitHub-hosted runner and starts with step-security/harden-runner. Every job but brew runs it in block with an allowlist - gate, upgrade, build, demo, and the three that hold a publishing credential: publish (the signing keys and a contents: write token), tap (HOMEBREW_TAP_TOKEN), and aur (AUR_SSH_KEY). brew stays on audit, which records its outbound connections without refusing any, until it has an allowlist of its own. Each allowlist’s comment names what each host is for; tighten or extend one from the harden-runner insights a release’s run summary links (a host block refused shows there), not by guessing.
Publishing each channel
The tap is a PR that merges itself; the AUR, until its flow is proven, is a dispatch you run against an already-published tag (gh workflow run publish-external.yml -f tag=v1.0.0, or the Actions UI). Neither reaches a v0.0.x debug tag or a candidate.
AUR
Blocked: AUR registration is closed to new accounts; what an Arch user does meanwhile is PACKAGING.md’s AUR. Each package’s first push is by hand, gated on namcap; after that a publish-external.yml dispatch pushes the versioned say-hi for each release, and no workflow touches say-hi-git, which has no version to bump. Build say-hi-git from the checkout and say-hi from the manifests a release attached:
gh release download v1.0.0 --pattern PKGBUILD --pattern SRCINFO --dir /tmp/say-hi-aur
mv /tmp/say-hi-aur/SRCINFO /tmp/say-hi-aur/.SRCINFO # the asset drops the dot; the AUR wants it
cd packaging/aur/say-hi-git # or /tmp/say-hi-aur
makepkg -f # builds it
namcap PKGBUILD # lints the recipe itself
namcap ./*.pkg.tar.zst # catches hardcoded paths and bad permissions
pacman -Qlp ./*.pkg.tar.zst # /usr/share/say-hi/..., /usr/bin/hi, /etc/profile.d/say-hi.sh, man page, license
A clean run: namcap PKGBUILD is silent, and namcap on the built package prints exactly three warnings, all correct to keep:
W: Dependency fish detected but optional (programs ['fish'] ...) # optdepend on purpose - hi works without it
W: Dependency zsh detected but optional (programs ['zsh'] ...) # same
W: Dependency included, but may not be needed ('openssh') # hi runs ssh; no shebang says so
Anything else is a real finding; push nothing until it is fixed. coreutils is deliberately not in depends; it is in base.
The end-to-end check:
docker run --rm -v "$PWD:/pkgs:ro" archlinux:base bash -c '
pacman -Sy --noconfirm openssh && pacman -U --noconfirm /pkgs/*.pkg.tar.zst
bash -lc "echo \$_HI_HOME; command -v hi; hi --version"'
Then push PKGBUILD and .SRCINFO, only those two, to ssh://aur@aur.archlinux.org/<package>.git, say-hi-git first since it needs no release. Never submit the versioned package with b2sums=('SKIP'); SKIP is correct only on say-hi-git.
Homebrew tap
The tap is a plain repo (PACKAGING.md’s Homebrew tap): nothing on Homebrew’s side reviews what lands there, which is why brew audit --strict is a hard gate here.
The checks, the PR, and its merge are automated. Right after publish, release.yml’s brew job puts the release’s formula in a throwaway tap on a hosted mac, runs the commands below against the published tarball, filters out the two expected findings further down, and records the verdict in its run summary. When it passes, tap opens a PR against the tap with the formula (its header rewritten for the tap by .github/scripts/tap_formula.sh), linking that run, and links the PR (or the tap’s formula, when already current) from the release body. The PR’s commit is made through GitHub’s createCommitOnBranch API rather than pushed from the runner, so GitHub signs it: the tap’s main ruleset requires signed commits and blocks every merge of a PR holding an unsigned one. The tap’s own CI runs brew style, brew audit, install, and test on macOS and Linux against the PR, which tap sets to auto-merge once they pass. Without HOMEBREW_TAP_TOKEN, tap warns and does nothing.
Repeating the checks on a mac of your own takes the same throwaway tap: brew audit needs a named formula, and current Homebrew will not install one from a bare path.
gh release download v1.0.0 --pattern say-hi.rb --dir /tmp/say-hi-tap
brew tap-new --no-git local/check
cp /tmp/say-hi-tap/say-hi.rb "$(brew --repository local/check)/Formula/"
brew trust --tap local/check # Homebrew 6+: an untrusted tap's formulae are ignored
brew install --build-from-source local/check/say-hi
brew test say-hi
brew audit --strict --new local/check/say-hi
A clean run: install and test exit 0, and audit reports only these two where the repository is unreachable (the homebrew/brew container, or a private repository):
* The homepage URL https://github.com/ivylikethevine/say-hi is not reachable (HTTP status code 404)
* HEAD: The URL https://github.com/ivylikethevine/say-hi.git is not a valid Git URL
Why the formula has no dependencies (no uses_from_macos "openssh" either) and a capitalised desc is in its own comments.
deb / rpm / apk
Built by mkpkg.sh and attached to every release; how a user installs one is PACKAGING.md’s deb / rpm / apk.
nfpm.yaml takes the staged tree in one type: tree entry for all three, and ci.yml’s packaging-smoke installs the signed apk on Alpine on every code PR.
Package repository
What a subscriber gets is PACKAGING.md’s Package repository; this is how it is built and signed.
How it is built. packaging/mkrepo.sh turns the packages mkpkg.sh built into dist/repo/: apt/ (dists/stable, pool/), rpm/ (repodata/), apk/{x86_64,aarch64}/, plus say-hi.asc, say-hi.rsa.pub, and say-hi.repo. It writes the apt indexes itself (apt-ftparchive is Debian-only and the format is small) and runs createrepo_c and apk index in throwaway containers, so a dev box needs docker and gpg and nothing else. publish runs it after the upload and attaches the tree as package-repo.tar.gz; pages.yml unpacks that asset from the newest non-prerelease release into the site. packaging-smoke builds a repository on every code PR, and tests/packaging/repo_test.sh (the e2e group) installs from one as all three clients, signatures verified, then installs a 0.0.1 build and takes the repository’s 0.0.2 as an upgrade through apt-get, dnf upgrade, and apk add -u, with a ~/.config/say-hi/colors written in between and checked after. Both versions are literals in repo_test.sh, so the upgrade ordering holds in a shallow, tagless checkout.
What signs what. One GPG key, GPG_SIGNING_KEY: build signs the rpm with it through nfpm (HI_GPG_KEY, checked by dnf gpgcheck=1), and publish signs the apt Release (InRelease, Release.gpg) and the rpm repomd.xml (repo_gpgcheck=1). Its public half is committed as packaging/gpg/say-hi.asc and served as say-hi.asc; both jobs refuse a secret whose fingerprint is not that file’s, so the key a client is told to trust is always the one that signed. APK_SIGNING_KEY signs the apk and each APKINDEX; build refuses it unless it matches packaging/apk/say-hi.rsa.pub, served as say-hi.rsa.pub. Without GPG_SIGNING_KEY the rpm builds unsigned and publish ships no repository; without APK_SIGNING_KEY the apk and its indexes ship unsigned. A signed rpm is the one artifact that is not byte-reproducible (Reproducibility).
Setting it up, once:
gpg --batch --passphrase '' --quick-generate-key 'say-hi packages <ivylikethevine@gmail.com>' rsa4096 sign never
gpg --armor --export-secret-keys 'say-hi packages' >say-hi.gpg.key # -> GPG_SIGNING_KEY, the whole file
gpg --armor --export 'say-hi packages' >packaging/gpg/say-hi.asc # -> commit
openssl genrsa -out say-hi.rsa 4096 # -> APK_SIGNING_KEY, the whole file
openssl rsa -in say-hi.rsa -pubout -out packaging/apk/say-hi.rsa.pub # -> commit
RSA 4096 rather than ed25519 because every rpm a supported distro ships verifies RSA, and EdDSA needs rpm 4.18 (RHEL 8 and 9 have older). No passphrase, as with the minisign key: nothing at the runner can type one. Then cut a release and, once Pages has deployed, run the three subscriptions in README.md’s Installation from a clean box. Locally, packaging/mkpkg.sh && packaging/mkrepo.sh builds an unsigned dist/repo/ for a look (--gpg-key/--apk-key sign it), and tests/test_runner.sh repo is the full proof with throwaway keys.
Nix flake
Nothing to publish: the flake is the repository, so a pushed commit is a flake ref and a release is github:ivylikethevine/say-hi/v1.0.0. How a user runs it is PACKAGING.md’s Nix flake.
How it is built. packaging/nix/package.nix renames the unpacked source to say-hi, stages it with install.sh --prefix /usr/share and stamps it with stamp.sh, as a PKGBUILD does, then moves the staged tree and man page under $out/share and writes a bin/hi wrapper that exports _HI_HOME. The staged /usr/bin link and /etc/profile.d snippet name paths a store has none of and are left behind. It patches no shebang, because the tree is what a session sends to a target, and its install check runs hi --version out of the store.
The version is not the tag’s. A flake cannot read the ref it was fetched at, and the tree carries no stamp (Layout), so hi --version answers 0-unstable-<commit date>-<short rev> for a release as for any other commit. An override names one: say-hi.packages.<system>.default.override { version = "1.0.0"; }.
flake.lock pins nixpkgs. nix flake update moves it, in a pull request like any other change; ci.yml’s packaging-smoke job builds from the committed lock with --no-update-lock-file, so a missing or stale one fails there.
The home-manager module (packaging/nix/home-manager.nix) spells scripts/rc.sh’s rc_lines block in Nix, each line tagged as install.sh tags it, which is how hi --doctor and hi --install know an rc is wired. The packaging_ci suite fails when the module and rc_lines part.
Verifying a packaged build locally
Linux only, as far as anyone has tested - packaging and publishing have not been tried on Windows, macOS, or the BSDs (CONTRIBUTING.md’s Before you start).
For a package you just built; Verifying a release download is for one somebody downloaded.
tests/test_runner.sh packaging packaging_ci install header # the offline drift guards
packaging/mkpkg.sh --stage-only # inspect exactly what ships
find dist/staging \( -type f -o -type l \)
packaging/mkpkg.sh # needs nfpm on PATH
dpkg-deb -c dist/say-hi_*_all.deb
The /etc/profile.d snippet, which no unit test can prove, needs a login shell on a real install:
docker run --rm -it -v "$PWD/dist:/dist" debian:stable \
bash -lc 'apt-get update -qq && apt-get install -y /dist/say-hi_*_all.deb && echo "$_HI_HOME" && hi'
Reproducibility
The same commit builds byte-identical deb/rpm/apk: mkpkg.sh exports SOURCE_DATE_EPOCH (HEAD’s commit time, respecting a value you set per the reproducible-builds.org convention), clamps the staged tree’s mtimes to it, and nfpm stamps everything else from the same variable. CI’s packaging-smoke double-builds on every code PR. Locally, run the builds sequentially, since nfpm.yaml hardcodes ./dist/staging:
packaging/mkpkg.sh && mv dist dist.first
packaging/mkpkg.sh && diff dist.first/SHA256SUMS dist/SHA256SUMS
CI pins nfpm in .github/actions/setup-tool/tools.txt; mkpkg.sh takes whatever nfpm is on PATH, so a different local nfpm can produce different (still internally reproducible) bytes.
The signed rpm is the exception, because a GPG signature carries its signing time: two builds with HI_GPG_KEY set differ in that header alone. The packaging-smoke double build leaves the rpm unsigned for that reason, and a third, signed build feeds mkrepo.sh. The released rpm’s provenance is the attestation and the signature itself, not a rebuild.
Regenerating the demo GIFs
docs/tapes/generate.sh renders all of them: one vhs run per tape, cheapest first, fixtures.sh down in between, and a summary of what rendered, stood down, or failed. Name tapes for a subset (generate.sh packages colors); --list shows them, --down clears up after a crashed run. --version <v> puts <v> in the header’s version cell (and in hi --version, on both ends of the wire) instead of git describe, so a release’s GIFs can be rendered before its tag exists. A hand render of one tape is vhs docs/tapes/<name>.tape from the repo root with the backend up, minding the two things generate.sh handles for you (which hi is on $PATH, and a dirty tree’s client/target split; see its header).
Seven of the eight render themselves. .github/workflows/demos.yml renders every tape but demo in CI, one runner per tape (installing podman, nomad, and kind as ci.yml’s e2e-backends does), for each release, weekly, or on dispatch. A collect job merges them into the one demo-gifs artifact the Pages build serves beside each tape, and is skipped if any tape failed, so the site never mixes a fresh render with a stale one. For a release, publish dispatches the workflow at the tag. The release’s own demo.gif is release.yml’s demo job, which renders the packages tape before the publish, so publish attaches it and embeds it in the body; a failed render ships the release without it. A tape added to generate.sh’s roster goes in that workflow’s tape matrix too. Nothing is committed back: branch protection refuses a bot commit, the same reason the tests badge is published rather than written into README. The committed top-of-README demo.gif claims the stock defaults, so re-render it by hand whenever the header, the prompt, or its tape moves.
The set is organised by feature, not backend, with the backends spread across the tapes so every one is on screen somewhere. Each tape’s header names the persona it is shot for, the header configuration, and whose prompt is in the frame; fixtures.sh’s up:<name> arm writes exactly that settings.sh. Change the two together, and README’s section for the GIF with them. Both sides of every GIF are staged: the outside shell starts from its distro’s stock prompt under a chosen user@host, which hi takes over or leaves as the tape’s settings say, and every target gets a login account and an explicit hostname rather than root on a random hex ID.