Releases¶
Parts¶
Each part repo (UI, notify, streamer, timelapse) has a release workflow that publishes into the main repo. Run it from Actions → release → Run workflow, on the repo's default branch. The form asks:
| Box | What it does |
|---|---|
| What to publish | stable or nightly |
| Version | Stable only. Leave it blank for the next version, or type one like 1.2.5. A version that already exists rolls main back to it |
| When the version is blank, raise the last one by | x.x.0 -> x.x.1 (a fix), x.0.0 -> x.1.0 (a new feature) or 0.0.0 -> 1.0.0 (a big change) |
| Test run | Does everything except publish, and shows the version and the notes in the run summary |
- Nightly — built on every push to
nightly, as<part>-nightly. A daily run at 06:00 UTC catches anything missed; it skips if that commit is already built. Choosing nightly by hand rebuilds it right away. - Stable — checks the code, works out the next version, and asks GitHub Copilot to write the release notes from the commits since the last release. If Copilot fails it uses the plain list of commit messages. It then adds one commit to
mainwith the default branch's files ("Squashed from nightly@<sha>"), tags that commitvX.Y.Z, and publishes<part>-vX.Y.Zinto the main repo andvX.Y.Zin the part's own repo.main's history is one commit per release.
The workflows publish into the main repo with the MAIN_REPO_TOKEN secret.
Copilot writes the notes with the COPILOT_TOKEN secret: a fine-grained token from an account with Copilot, with the Copilot Requests permission. Without it the notes fall back to the commit list.
needs.txt¶
If a part needs a minimum version of another part, add needs.txt to its repo, one per line:
Updates are held back ("Waiting") until that's met.
Solo AI¶
solo-print-buddy-ai has the same release workflow and form, but it publishes its releases in its own repo instead of the main repo, because printers install it straight from that repo's main.
Release all¶
Actions → release all in the main repo releases several parts at once. It starts each ticked part's own release workflow as a stable release from nightly, waits for them all, and lists each one as done, failed or skipped, with a link to its run.
| Box | What it does |
|---|---|
| Version | Releases every ticked part as this version, like 1.6.2. A part that already has it, or is past it, is skipped, so nothing is rolled back. Leave it blank to use the raise-by box |
| When the version is blank, raise each part's last version by | The same choices as in each part's form |
| Test run | Every part does everything except publish |
| Core, UI, Timelapse, Notifications, Camera streamer, Solo AI | Which parts to release |
Run Actions → current versions first. It lists every part's latest release, the highest one, and the next version that no part has yet, which you can type into Version to put everything on the same number.
release all starts the other repos' workflows with the RELEASE_ALL_TOKEN secret, a fine-grained token with Actions: read and write on those repos. If it has an expiry date, make a new one before then.
Core¶
Run Actions → release → Run workflow from nightly. It has the same version, raise-by and Test run boxes as the parts, but no What to publish box, because core has no nightly release: nightly installs follow the nightly branch itself.
It checks the code (compiles the Python and checks the shell scripts), adds one commit to main with nightly's files (the same squash as the parts) and publishes the release core-vX.Y.Z with Copilot-written notes (the plain commit list is the fallback). A version that already exists rolls main back to it instead. Stable installs follow main.
AI models¶
In the private printer-buddy-ai repo, python export.py --tag basic-v1 --release --repo printer-buddy/printer-buddy publishes ai-basic-v1 (use the model's own kind and version) and starts the ai stats workflow, which tests the models and adds a Model check section to the release notes.
What's newest¶
Printer Buddy reads the main repo's release list from GitHub to know the newest stable and nightly of each part, and the needs: lines in their notes. Publishing a release is all it takes.