Every release is tagged v<version>, such as v0.6.0. [workspace.package] version in Cargo.toml is the Orbit
version. Only main releases, and only stable versions.
Important
A push to main that changes the version in Cargo.toml releases that version, unless its tag exists already.
-
Describe each change in a change file with
scripts/change.sh. The files become the release notes, see Change files -
Check the entries of the next release:
scripts/change.sh --notes
-
Select the version. The script commits it and asks to push:
scripts/release.sh
-
The push runs
.github/workflows/image.yml:- it builds and smoke-tests the image, then tags it
<version>,<major>.<minor>andlateston ghcr.io - it creates the GitHub release
v<version>with the binaries,SHA256SUMSand the notes of the version's section inCHANGELOG.md - it sets the version in
https://cdn.coollabs.io/orbit/version.jsonwithscripts/sync-cdn.sh, so self-hosted servers showUpdate to v<version> - like every push to
main, it deploys Orbit Cloud
- it builds and smoke-tests the image, then tags it
Tip
To take the release commit back before the push:
scripts/undo-release.shWhen a release run fails, fix the cause and run the Container image workflow on main by hand
(workflow_dispatch). It releases the version in Cargo.toml when its tag does not exist yet.
Every change that users can see has a file in .changes/, AGENTS.md describes the types and the wording:
---
type: fixed
---
Lost unsaved comment when a task closed
- The draft stays until the comment is sentscripts/change.shwrites a file, it asks for what its flags leave out, and--notesprints the entries of the next releasescripts/release.shpreselects the version that the files need (a breaking change needs a minor release before 1.0), writes them under## [v<version>] - <date>inCHANGELOG.mdand removes themscripts/undo-release.shbrings the files back
scripts/sync-cdn.sh <version> pushes json/orbit/version.json to main of coollabsio/coollabs-cdn, which
deploys https://cdn.coollabs.io/orbit/version.json. It refuses a version older than the one on the CDN.
- The release workflow reads
CDN_TOKENfrom the repository secrets: a fine-grained token forcoollabsio/coollabs-cdnalone, with read and write access to contents - Cloudflare keeps the file for up to 10 minutes. A server asks the CDN at most once a day
- To run it by hand, sign in with
gh auth loginand rungh auth setup-gitfirst