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 image.
- Companion releases promote an already published GitHub Release by rewriting feeds read by Companion’s auto-updater and by the Sambee frontend.
- Docker images are available for Linux only, whereas Companion is a native app for Windows, Linux, and macOS. Each platform binary needs to be built on the respective OS.
Summary
If you want to take a new Companion version to the stable update channel, follow this order:
- Increment
VERSIONto the nextX.Y.Zvalue and run./scripts/sync-version. - Run
Release: Build Companion Artifact:- Select target platforms
- If the workflow’s source version field is left blank, the artifact is built from the current commit in
main, and the Git tagbuild-vX.Y.Zis created to reserve the version for the commit the artifact is built from. - If a source version field is specified, the workflow verifies and repairs the artifact associated with the version via the Git tag used for reservation.
- The workflow:
- builds Companion
- signs the build artifacts
- creates one immutable draft release in in the Companion GitHub repo .
- assigns a
companion-vX.Y.Ztag to the draft release.
- Test the draft release.
- Download the installer from the release’s artifacts, install and test.
- Publish the draft release. This:
- Makes the release eligible for promotion to the
test,beta, andstablechannels. - Prevents additional build workflow runs changing the published Companion release.
- Makes the release eligible for promotion to the
- Ensure that a matching published public Sambee release
vX.Y.Zexists.- This authorizes the Companion workflow to promote a release.
- To promote the release to the update channels, run
Release: Promote Companion Release:- Select the channels:
test,beta, and/orstable. - Select whether to update the Sambee download metadata.
- Select the channels:
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.