Release a version
LeonAid versions use CalVer. A release is vYYYY.M.N: the UTC year and month
without a leading zero, and N counting the releases in that month from 1. A
fix release is vYYYY.M.N.P on top of exactly one release. Tags are annotated
and are never moved, deleted or reused.
Release from main
Section titled “Release from main”- Merge everything for the release into
main, pull it and wait until CI on the last commit is green. - Run
./leonaid release --dry-run. It shows the next version and the notes grouped from the Conventional Commits since the previous release. - Run
./leonaid release. It checks a clean tree, thatHEADequalsorigin/main, green CI and aghlogin, then pushes the tag. - The tag starts the
Releaseworkflow. It builds the six LeonAid images, pushes them toghcr.io/<owner>/leonaid/<name>:<version>and publishes the GitHub release with three files:release-images.env: the version, the commit and the six image references with tag and digest;release-manifest.json: the production release manifest;SHA256SUMSfor both files.
The workflow refuses to overwrite images that already exist for a version.
Fix release
Section titled “Fix release”- Land the fix on
mainfirst through a pull request. - Create the release branch once from its tag:
git switch -c release/2026.11.1 v2026.11.1. - Apply the fix with
git cherry-pick -x <commit>and push the branch. - Run
./leonaid releaseon the branch. The result isv2026.11.1.1. Fix releases are not marked as the latest GitHub release.
Resume a stopped release
Section titled “Resume a stopped release”If the tag exists but the GitHub release is missing, run ./leonaid release
again on the tagged commit. It pushes the tag again and starts the workflow
for it; it never creates a second tag.
Deploy the release
Section titled “Deploy the release”Copy the lines of release-images.env unchanged into the private environment
file and continue with
Deploy a pilot installation using
release-manifest.json. An installation that already runs gets the release
with one command, ./leonaid upgrade: see
Upgrade an installation.