Sambee Companion releases are built and published once, and later promoted across update channels by changing public feed files.
Key differences between the Companion and Docker release paths:
- Docker releases promote an already published container digest.
- Companion releases promote an already published GitHub Release by rewriting feeds read by Companion’s auto-updater and by the Sambee frontend.
- Local Linux-hosted cross-checks can validate Windows-target compatibility, but they do not replace the Windows CI release build.
Summary
If you want to take a new Companion version to the stable update channel, follow this order:
- Update the committed plain numeric
VERSION, run./scripts/sync-version, and dispatch frommain. - Run
Release: Build Companion Artifactand select target platforms, or select an existing canonicalbuild-vX.Y.Zcandidate.- This creates one immutable draft release in
helgeklein/sambee-companion.
- This creates one immutable draft release in
- Test the draft release.
- Download the installer from the releases artifacts, install and test.
- Publish the draft release.
- Run
Release: Promote Companion Releasefortest.- Validate both update behavior and direct-download metadata against the promoted feeds.
- Rerun
Release: Promote Companion Releaseforbeta,stable, and Sambee download metadata.
Companion release tags follow the companion-v<version> pattern.
The workflow uses build, recover-finalizer, and complete states. A matching incomplete draft resumes only from recorded retained Actions artifacts; a complete draft or published release is not rebuilt. When a replacement is needed, increment Z, synchronize, commit on main, and build a new candidate.
One published release can move from test to beta to stable without rebuilding binaries.
Read the detailed pages in this order:
Workflow Map
| Workflow or system | When to use it | Result |
|---|---|---|
Local npm run check:rust:windows | You want an early local Windows-target compatibility signal while working in Linux or the devcontainer. | Runs a Windows GNU target cargo check only. It does not create signed release assets. |
Release: Build Companion Artifact | You want to create release assets for one canonical version. | Builds the selected platform set and creates, resumes, or reports the immutable draft GitHub Release in helgeklein/sambee-companion. |
Release: Promote Companion Release | A published Companion release is approved for one or more channels or for Sambee download metadata. | Rewrites the selected feed files in docs/feeds of the release repository and publishes the updates at https://release-feeds.sambee.net. |
helgeklein/sambee-companion | You need the release repository that owns public Companion release artifacts. | Hosts immutable GitHub Release assets and stores the committed feed files under docs/feeds to be served by GitHub Pages. |
https://release-feeds.sambee.net | You need the public feed host that installed Companion builds and Sambee read. | Serves the promoted feed JSON files from GitHub Pages (not from the main sambee.net website deployment). |
Main Control Points
| File or system | Role |
|---|---|
.github/workflows/build-companion.yml | Builds platform artifacts from a canonical source and creates or resumes one draft release for its immutable tag. |
.github/workflows/promote-companion-release.yml | Promotes one published release to selected public feeds. |
.github/scripts/promote_companion_release.py | Resolves release assets and writes the feed JSON files. |
helgeklein/sambee-companion | Dedicated public release repository for Companion GitHub Releases and committed feed source files. |
release-repo/docs/feeds | Source-controlled feed JSON files that promotion updates and commits. |
https://release-feeds.sambee.net | Public host that serves the promoted feed JSON files to Companion and Sambee. |
Channels And Consumers
Companion does not use separate binaries per channel. It uses one published release plus multiple mutable feed pointers.
| Consumer | Public file | Purpose |
|---|---|---|
| Installed Companion builds | feeds/companion/tauri/<channel>/latest.json | Tells the updater which published release is visible on stable, beta, or test. |
| Sambee backend | feeds/sambee/companion/latest.json | Tells Sambee which Companion installers and release notes to show in the UI. |
Changing a Companion channel feed affects auto-update visibility for installed apps. Changing the Sambee metadata feed affects which direct downloads Sambee surfaces.
Those are separate decisions and can be promoted independently.
The current public feed host is not the same deployment surface as the main sambee.net website built from this repository.
The live feed host responds separately from the Cloudflare Pages deployment used by sambee.net.
Published Artifact
Published Companion releases live in helgeklein/sambee-companion as GitHub Releases.
Each release may contain:
- Installer assets.
- Tauri updater bundles.
.sigfiles for updater verification.- Release notes.
Release tags do not encode a channel. Channel visibility is decided only by the promoted feed files.
Operating Rules
- Do not treat update channels as different binaries.
- Do not patch broken published assets in place.
- Build and publish a new release instead of replacing assets on an existing tag.
- Increment the
Zbuild sequence when you need another candidate. - Review whether you are changing Companion updater visibility, Sambee download visibility, or both.
- Treat local Windows GNU cross-checks as compatibility validation only.
- Keep actual Windows artifact creation and signing in the CI release workflow.
Use Companion Channels, Feeds, And Downloads for the system model behind those rules.