Releasing Vix
A release goes out by pushing a version tag: the tag starts
.github/workflows/release.yml (generated by dist), which builds every
target and publishes every channel. 2.0.1 and 2.0.2 shipped this way.
scripts/release-local is the local alternative; it was used for real once,
for 2.0.0, which therefore shipped only three archives. Cutting a tag or a
GitHub Release is always the maintainer’s decision (AI_STATEMENT.md);
cargo publish is pre-authorized under its §1–§5 checklist.
The normal path: a tag on main
- Cut the changelog:
CHANGELOG.mdneeds a## [2.0.2]section (not just[Unreleased]) and the workspace version must match. - Attest the commit to release with
scripts/attest(see Contributing) on a machine withcargo-hack,cargo-semver-checks0.51 or newer and CSpell installed, check it withscripts/attest --verify --release, push it tomainwithgit push origin refs/notes/vix-gate, and wait for CI to be green. Every forge’s release jobs refuse a tag whose tree has no such record (T866,spec/ci, “Release evidence”); theVIX_ALLOWED_SIGNERSsecret must be set on GitHub and Codeberg (CI/CD variableVIX_ALLOWED_SIGNERS_DATAon GitLab). - Tag only a commit that is already on
mainon GitHub.dist’shostjob creates the GitHub Release with the tagged commit as its target, andGITHUB_TOKENgetsHTTP 403: Resource not accessible by integrationfor a commit that is on no branch (seespec/ci). With the maintainer’s say-so, push a signed tag such as2.0.2. - Watch the release run (
gh run watch). It builds the archives (including a static musl build, whose flags come from.github/dist/build-setup.yml), the shell and PowerShell installers, the MSIs and the GUI archives, creates the GitHub Release (with a CycloneDX SBOM,<program>.cdx.xml, forvix-tuiand each GUI), runs the Homebrew job (thevixformula, the seven macOS app bundles, six Linux AppImages per architecture and their casks, pushed tovixide/homebrew-tap; seespec/brew) and publishes@vixide/vixto npm; thelinux-packagesworkflow then builds and tests the.deb,.rpmand Arch packages. A failed publish job can be re-run on its own once its cause is fixed. - Publish the crates:
cargo publishfor every workspace crate, in dependency order, after the checklist inAI_STATEMENT.md§1–§5. Then, fromgui/, the seven GUI crates (cargo publish -p vix-egui, …), and last the umbrella cratevix(cargo publish -p vix), which depends onvix-tuiand every GUI at this version (gui/vix/spec, “Publishing”). crates.io rate-limits new versions (about 30 crates at once, then about one a minute), so publishing all of them takes a couple of hours. The run is resumable: skip every crate already at the version and carry on.
The local alternative: scripts/release-local
scripts/release-local (T766) builds the three Makefile release targets,
checksums them, signs the checksums with the maintainer’s SSH key, and can
upload them to GitHub and Codeberg. It never creates or pushes a tag unless
given the separate --tag flag.
- Rehearse:
scripts/release-local 2.0.2 --dry-run. This checks the preconditions, runsmake build-macos build-windows build-linux, writestarget/release-local/2.0.2/, signs it, and prints the exactghandteacommands an upload would run. It uploads nothing and tags nothing. The default (no flags) behaves the same. - Check the result as a downloader would:
scripts/release-local --verify-dir target/release-local/2.0.2. - Decide about the tag.
scripts/release-local 2.0.2 --tagmakes a signed annotated tag locally and nothing else. Pushing it is the maintainer’s decision, and pushing it also startsrelease.yml, which builds and creates the full release, so decide which path is the release before you push. - Upload:
scripts/release-local 2.0.2 --publish. It refuses unless the tag already exists on both forges, asks you to typepublish 2.0.2 to github codebergexactly, then runsgh release create --verify-tag(orgh release upload --clobberwhen the release exists) andtea releases create.
What it refuses
A tree that is not clean, a branch other than main, a HEAD tree without a
release-qualifying attestation (scripts/attest --verify --release: every
release check run and none skipped, so an attestation made without
cargo-hack, cargo-semver-checks or CSpell installed does not count), a version that is not
the workspace version or has no changelog section, a missing build tool or cross
linker, and (for --publish) a missing tag or a confirmation that does not match.
Assets
For each target the script writes vix-tui-<target>.tar.xz (.zip for Windows),
a matching .sha256, one SHA256SUMS, and SHA256SUMS.sig
(ssh-keygen -Y sign -n vix-release, verified with the allowed signers file that
signs commits). A downloader verifies with scripts/release-local --verify-dir DIR
or ssh-keygen -Y verify -n vix-release. What an administrator checks on each
distribution route, signed or not, is in
Verifying a download (scripts/verify-release).
Packaging handoff
scripts/packaging render 2.0.2 --sums SHA256SUMS reads a release’s
checksums to fill the winget, Scoop and AUR templates; nothing is published.
The templates name the dist targets (*-pc-windows-msvc,
*-unknown-linux-gnu), so render them from a dist release’s checksums; the
local release builds x86_64-pc-windows-gnu and x86_64-unknown-linux-musl,
and render reports the assets it lacks.
When a release fixes a vulnerability, the incident-response playbook says what comes before and after these steps.
See spec/ci and
spec/local-ci for the design.