13 KiB
Releasing SolidCraft
Releases are deliberate operations that an agent can complete end to end. Development lands
on main; pushing the selected commit to release builds all packages and creates a draft
GitHub Release. Publishing that verified draft is a separate operation. Pushing to main or
pushing a tag does not start the release workflow. There is no automatic commit-message-based
version bump and no patch release for every merge.
Names and deployment
Every release asset, binary, installer product name and package uses the SolidCraft name
(solidcraft-<version>-linux-<arch>.AppImage, SolidCraft-<version>-windows-x64.exe,
solidcraft-cli archives, …). The old name survives only in the shims listed in
compatibility.md (the end-of-life Flatpak refs of the old Linux app ID, the legacy .zsync and .flatpakrepo
copies, the deprecated old-name CLI alias); keep them until that document says they can go. Do not
rewrite published assets, checksums, tags or historical release notes of earlier versions.
The main installers (.msi, portable .zip, .dmg, .AppImage, .deb, .rpm, .flatpak, .snap) are
also attached without the version in their names, for example solidcraft-windows-x64.msi and
solidcraft-linux-x86_64.AppImage, and listed in SHA256SUMS.txt. The README's Download section
links to https://github.com/bherbruck/solidcraft/releases/latest/download/<name>, which follows
the release marked latest; nightlies never are. Keep these names stable: renaming one breaks the
README links.
Project Pages publishes the documentation, browser app and published-release Flatpak
repository under /solidcraft/. Do not add a separate owner-site publisher or permanent
old-name Pages/Flatpak aliases. GitHub repository redirects are separate from Pages hosting;
verify the new project URLs after deployment.
The browser app keeps itself for offline use (apps/solidcraft-web/sw.js). Browsers keep that
service worker after the code that registered it is gone, so to switch it off deploy
apps/solidcraft-web/sw.js unbuilt (as trunk serve builds do): it deletes what it kept and
unregisters. A site without build.json is also safe: launches then go to the network.
Nightly prereleases
release.yml also runs at midnight in America/New_York (Eastern time, following daylight
saving time). GitHub may start scheduled runs later when its runners are busy.
Before building, it compares the exact scheduled main commit with the tag of the most
recently published release, including prereleases. If the commits match, all packaging and
publication jobs are skipped: no new version, tag, or release is created. Drafts do not count
as published releases, so a failed build or publication can be retried the following night.
Changed commits use the existing package build and validation jobs. Only after all jobs
succeed, the workflow stages the assets in a draft and publishes a prerelease named
v<workspace-version>-nightly.<YYYYMMDD>.<run-number>.<run-attempt> with checksums and generated
notes. Any existing workspace prerelease suffix is replaced by the nightly suffix. Dates
use Eastern time; package versions are overridden without changing Cargo.toml or Cargo.lock,
so the binaries' embedded Cargo version remains the workspace version. Nightlies do not
replace the latest stable release or advance the release branch. The normal deliberate
release process below continues to create drafts for separate verification and publication.
Nightly publication uses GITHUB_TOKEN, so it does not trigger the downstream Flatpak Pages
deployment. The stable Flatpak repository is not automatically updated with nightly builds.
Choose and prepare the version
- Fetch
originand its tags. Inspect the previous published release and the changes since it. Choose one version for the complete batch, based on user-visible behavior:- Patch: compatible fixes, reliability improvements, and packaging corrections.
- Minor: new compatible capabilities. While on
0.x, also use a minor bump for breaking changes and explain the break and any migration in the notes. - Major: incompatible public behavior or file-format/API changes after
1.0. Moving to1.0is an explicit product decision, not something inferred from a commit prefix. - Use
-rc.1,-rc.2, etc. when a release candidate is requested. Documentation-only changes normally wait for the next release. State the reason for the chosen bump in the release notes. Follow any version or release scope specified by the owner.
- Update
[workspace.package] versionin rootCargo.toml. Then runcargo update --workspace --offlineto refresh the workspace packages' versions inCargo.lock(it changes only our own crates, never dependency versions, and needs no network). Inspect the diff: onlyversion =lines of workspace crates should change. SolidCraft does not currently implementcargo xtask version set. - Run
cargo xtask ciand the packaging checks in.github/workflows/packaging-lint.yml. Commit the version files through the normal review flow and land them onmain. Do not use[skip ci]. Record the exact commit SHA to release. If it changes, revalidate it.
Build the draft
Use an authenticated maintainer account or GitHub App with the repository's normal release permissions. Follow branch rules; never force-push or bypass required checks.
git fetch origin --tags
git switch release
git merge --ff-only origin/release
git merge --ff-only origin/main
git push origin release
For the first release, after this workflow has landed on main, create release from the
validated origin/main commit (git switch -c release origin/main) and push it. If the branch
already exists, use the commands above. Do not create the branch from unrelated work. If a
fast-forward fails, inspect and resolve the divergence through the normal review flow.
Find the release.yml Actions run for the recorded SHA and release branch, and monitor that
specific run. The workflow builds Linux (both architectures, including Flatpak), macOS,
Windows, FreeBSD, and web packages. Once every required job succeeds it creates a draft
SolidCraft v<version> with the artifacts, SHA256SUMS.txt, install notes, and generated changes.
A second push with the same untagged version can rebuild and replace that draft's complete asset set. Existing release notes are preserved on rebuild; refresh their changes section if new commits were added. An existing tag or published release is never overwritten. Use a new version after publication. Do not push the version tag yourself: publishing the draft creates it at the draft's target commit.
Notes for the next release
Items to carry into the next release's notes (step 3 below), then remove from here:
- None yet.
Verify and publish
When the task authorizes shipping a release, agents should complete these steps without requiring the owner to click through the GitHub UI. A request only to prepare a release or change release infrastructure does not itself request publication of the application.
-
Confirm that the workflow run succeeded for the intended SHA and that the matching release is still a draft targeting that SHA. Avoid publishing while another release build is active.
-
Download all assets to a fresh directory. Run
sha256sum --check SHA256SUMS.txtand check that every expected platform/architecture is present. Smoke-test the built CLI's--versionand an example model on an available platform. Inspect the package-check job output for other platforms; report any platform you could not exercise yourself. -
Review the generated notes. Add a concise description of features, fixes, breaking changes, and known limitations. Keep the installation instructions. Packages are currently unsigned; do not claim otherwise. Resolve failed checks or missing artifacts before publication.
-
Publish the verified draft using
ghor the equivalent GitHub release API. For example:# Substitute the version that was actually built and verified. gh release edit v0.2.0 --draft=false --latest # For a release candidate instead: gh release edit v0.2.0-rc.1 --draft=false --prerelease --latest=false -
Confirm that the release is public and its tag resolves to the recorded SHA. Report the release URL, version, checks performed, and any remaining limitations.
Dry runs and retries
gh workflow run release.yml --ref <branch> -f draft=false builds packages and uploads the
release-assets Actions artifact without creating or publishing a release. For an explicit
retry that creates/updates a draft, use --ref release -f draft=true. Draft creation from
another branch is rejected. A rerun must still use an unpublished, untagged version.
Flatpak repository coordination
The Flatpak repository proposed in PR #39 consumes published releases, not these drafts.
Keep that deployment separate from building the application. A publication made with an
Actions GITHUB_TOKEN does not trigger downstream release: published workflows; in that
case explicitly dispatch the Flatpak workflow with the published tag, or use an appropriately
authorized maintainer/App token for publication. Do not assume the repository updated: check
the deployment run. The Flatpak workflow requests the shared Pages workflow with that tag;
Pages assembles the documentation, browser app, and Flatpak repository together. Ordinary
docs updates include the latest stable Flatpak release too. Verify the resulting Pages run,
not only the dispatch job, so a release cannot erase the docs or app and docs updates cannot
erase the package repository.
Snap package and Snap Store
Every release and nightly attaches solidcraft-<version>-linux-<arch>.snap for x86_64 and
aarch64 (packaging/linux/snap-pack.sh, manifest packaging/linux/snap/snapcraft.yaml). Like the
Flatpak, it repackages the Linux job's tarball. The snap job installs it with --dangerous,
starts the confined app on headless X11 and Wayland (packaging/linux/snap-smoke.py), models a
box over the control channel and keeps the captured frames as the snap-smoke-<arch> artifact.
The Snap Store steps run only when the SNAPCRAFT_STORE_CREDENTIALS repository secret exists;
without it they are skipped and the .snap files are still attached to the release:
- nightlies are uploaded to
latest/edge; - release drafts (pushes to
release) are uploaded tolatest/candidate, after every package built and the draft was staged; - publishing a non-prerelease GitHub release runs
snap-store.yml, which promoteslatest/candidatetolatest/stable. As with the Flatpak repository, a publication made withGITHUB_TOKENdoesn't trigger it: then rungh workflow run snap-store.yml.
To enable the Snap Store once (owner):
-
Sign in at https://snapcraft.io with an Ubuntu One account and register the name at https://snapcraft.io/register-snap (or
snapcraft loginthensnapcraft register solidcraft). -
On a machine with snapcraft (
sudo snap install snapcraft --classic), export upload-only credentials for this snap:snapcraft export-login --snaps=solidcraft \ --channels=edge,candidate,stable \ --acls=package_access,package_push,package_update,package_release \ --expires=2027-10-01 solidcraft-store-credentials.txt -
Store them as the repository secret and delete the file:
gh secret set SNAPCRAFT_STORE_CREDENTIALS -R bherbruck/solidcraft < solidcraft-store-credentials.txt rm solidcraft-store-credentials.txt -
Optional: fill in the store listing at https://snapcraft.io/solidcraft/listing (the icon, summary and description come from the snap; add screenshots and the category "Art and design").
-
The next nightly fills
edgeand the next release fillscandidate, thenstableon publication. To fillstablefrom an already published release right away, download its.snapfiles and runsnapcraft upload --release=stable <file>for each.
Renew the credentials before --expires by repeating steps 2 and 3. The snap uses strict
confinement and only plugs that connect automatically, apart from removable-media, which users
connect with sudo snap connect solidcraft:removable-media (getting-started.md).
Repository setup
The release branch is advanced only for intentional release batches. Restrict its writers to
maintainers/release agents through repository rules if required by the owner's policy. The
workflow needs contents: write only in its draft-creation job. It does not push commits,
calculate versions, or require a semantic-release bot to bypass main protections.
This workflow replaces the every-push-to-main semantic-release proposal in PR #38; do not merge that automation alongside this release model without redesigning its triggers.