Skip to content

Release process

How a new version of the desktop installer (.dmg/.msi/.deb) is cut and published.

graph LR
    A["Create branch release/X.X.X"] --> B["Push to release/X.X.X"]
    B --> C["Tests + Release candidate"]
    C --> D["PR release/X.X.X → main + rehearsal"]
    D --> E["Merge"]
    E --> F["Release: test + build + smoke test + tag + publish"]
  1. Create the branch release/X.X.X (where X.X.X is the version to publish) from develop, write the headline feature of the release in .github/release-title (see Release title) and its notes in .github/release-notes/X.X.X.md and X.X.X.es.md (see Release notes).
  2. Validate — every push to release/** triggers two workflows, used to iterate and fix issues before opening the PR:
    • Tests (.github/workflows/tests.yml), which runs ./gradlew test and, on macOS, ./gradlew koverVerify. When koverVerify fails, the run uploads every module’s Kover XML and HTML reports as the kover-reports-macos-latest artifact (kept 14 days), to find the uncovered lines. The same workflow also runs on every pull request targeting develop or an epic/** branch and on every push to develop, so regressions are caught before they reach a release branch.
    • Release candidate (.github/workflows/release-candidate.yml), which builds the installers for the version in the branch name and runs the packaged smoke test on them. It never creates a tag, a release or a package manifest. It can also be started by hand from the Actions tab on any branch, giving the version to package.
  3. Open the PR from release/X.X.X to main and review it like any other. While it is open, go through the clean account rehearsal with the .dmg built from the branch: the installer-macos-latest (Apple Silicon) or installer-macos-26-intel artifact of its latest Release candidate run, signed and notarized like the published one.
  4. Merge — when a PR whose source branch matches release/* is merged, the Release workflow (.github/workflows/release.yml):
    1. validates the version taken from the branch name (or the tag): it must be X.Y.Z with digits only, otherwise the run fails before building anything,
    2. runs the full test suite on the release commit on Linux, macOS and Windows (.github/workflows/test-suite.yml, the same one Tests uses). Nothing else runs until it passes,
    3. builds the installers on macOS Apple Silicon, macOS Intel, Windows and Linux (packageReleaseDmg/Msi/Deb) passing that version, with a read-only token, and in parallel the standalone command-line tool once on Linux (:cli:distZip, see Command-line tool), all in .github/workflows/package.yml, the same one Release candidate uses. The macOS installers are built by .github/workflows/macos-installer.yml, which signs the app with the Developer ID certificate, renames each .dmg Taxilane-X.X.X-<arch>.dmg (arm64/x64, taken from the runner’s own architecture), signs it, notarizes it with Apple, staples the ticket and checks it with Gatekeeper (see macOS signing and notarization). Each installer and taxilane-X.X.X.zip are kept as workflow artifacts,
    4. runs the packaged smoke test on each installer (.github/workflows/smoke-test.yml). Nothing public exists yet, and nothing else runs until it passes on every operating system,
    5. creates and pushes the vX.X.X tag on the merge commit (the version comes from the branch name, no need to write it twice) and creates the GitHub Release in draft mode with the release notes as its body (see Release notes) titled vX.X.X — <headline> (the headline read from .github/release-title, see Release title), only once,
    6. a job that holds only the permissions to sign attestations (it doesn’t check out the repository or run the build) generates a signed build provenance attestation for each installer and the zip (actions/attest). The release isn’t published until every attestation exists,
    7. once every attestation exists, the only job that writes to the repository writes SHA256SUMS with the checksum of every asset, uploads everything to the draft and publishes the release (takes it out of draft),
    8. regenerates the Homebrew Cask from .github/homebrew/taxilane.rb with .github/homebrew/render-cask.sh, the same rendering the smoke test installed, with the new version and the .dmg checksums read from SHA256SUMS, and pushes it to the CiroFeliu/homebrew-taxilane tap. The Cask installs the app and links its launcher as the taxilane command,
    9. regenerates bucket/taxilane.json in the CiroFeliu/scoop-taxilane bucket from .github/scoop/taxilane.json with .github/scoop/render-manifest.sh, the same rendering the smoke test installed, with the new version and the .msi checksum read from SHA256SUMS, and pushes it,
    10. opens a pull request to microsoft/winget-pkgs updating CiroFeliu.Taxilane to the new .msi (winget-releaser action). While the package isn’t in winget-pkgs yet, the job logs a warning and skips it instead of failing.

Steps 8, 9 and 10 run in parallel and are independent: if one fails, the release stays published and the others still run.

The whole flow from step 4 happens in a single CI run, with no manual intervention. The release is created as a draft and only published at the end because an already-published release is immutable for GitHub (it rejects new assets), and because writing the notes only once avoids duplicates if each matrix build wrote them on its own.

The test suite runs the code from Gradle on a machine set up like the developer’s; the smoke test checks what a user downloads instead, installed on a fresh runner and started the way the desktop starts it. Each operating system has its own job and script in .github/smoke/:

Runner Installs Starts the app Then checks
macOS Apple Silicon and Intel the .dmg into /Applications with open, so it gets the Dock’s minimal PATH taxilane linked into Homebrew’s bin, the hooks installed, the tour started, then taxilane new from a login shell
Windows the .msi, silently with the PATH a new session reads from the registry taxilane.cmd installed and its folder added to the user’s PATH, the hooks installed, then taxilane new through taxilane.cmd from a new session
Linux the .deb, on a runner without the system menus folder /etc/xdg/menus, as on a server as a new user without ~/.local/bin, twice the package fully installed; first taxilane installed into ~/.local/bin but not on the PATH; after the restart, available and the hooks installed; then taxilane new from a login shell; then the package removed, and installed and removed again with the menus folders a desktop has, adding and removing its applications menu entry

The app does the work in its smoke-test mode: started with TAXILANE_SMOKE_TEST_REPORT=<file>, it opens no window and, with the same objects its buttons use, installs the command and Claude Code’s hooks, goes through the start of the guided tour and ends it, adds the sample repository (TAXILANE_SMOKE_TEST_REPOSITORY) as a project with its local files (TAXILANE_SMOKE_TEST_LOCAL_FILES), creates a worktree and checks the copied files. It writes a JSON report of every step and exits with a non-zero status when a step failed. Each script then compares the report with what its machine should show, and checks the files taxilane new copied (a .env.local listed in the project and a config/local.json declared in the repository’s .taxilane.json).

Two more jobs install the package manager manifests the release will push, rendered by the same scripts from the installers just built, before anything is published:

Runner Installs Then checks
macOS Apple Silicon and Intel the Homebrew Cask, from a local tap, with brew install --cask the Cask downloads the .dmg the release publishes for that architecture, with its checksum; the app in /Applications; taxilane --version from a login shell; brew uninstall --cask removes the app and the taxilane link
Windows the Scoop manifest, with scoop install from the local file, after installing Scoop the manifest downloads the .msi the release publishes, with its checksum; the Start menu shortcut; taxilane --version from a new session with no Java on the PATH; scoop uninstall removes the app, the command and the shortcut

The release’s download URLs don’t exist yet, so each script copies the built installer into the package manager’s download cache, where it looks for that URL (brew --cache --cask, Scoop’s cache_path), and the package manager checks its checksum as it would a download. winget isn’t smoke tested: its manifest is generated from the published release, and it installs the same .msi.

A failure fails its job with the step or file that went wrong. Every job uploads a smoke-test-<runner> artifact (smoke-test-homebrew-<runner> and smoke-test-scoop for the manifests) with the report, the app’s log and the installer’s or package manager’s log, to diagnose it. In the Release workflow a failure means no tag, no release, no attestation and no updated manifest: fix it on a new release/ branch (or the same one, before merging) and release again.

To try the smoke-test mode locally without touching your own settings, build the app (./gradlew :desktopApp:createReleaseDistributable -PappVersion=1.0.0), prepare a repository with .github/smoke/prepare-repository.sh <folder>, and run the launcher with an isolated home: JAVA_TOOL_OPTIONS=-Duser.home=<empty folder>, plus the three variables above.

Every release reads its title from .github/release-title: the first line of that file is the headline feature, and the workflow titles the release vX.X.X — <headline>. For example, 0.9.0 shipping multi-repo support is released as v0.9.0 — Multi-repo support.

Write it when creating the release branch, in the same commit that bumps the version. If the file is empty or missing, the workflow falls back to the plain vX.X.X title and logs a warning, so a forgotten title never blocks a release — it is still worth an entry in the release notes.

Every release has notes written by hand for its users, in English and Spanish, in two files named after the version: .github/release-notes/X.X.X.md and .github/release-notes/X.X.X.es.md. Write them on the release branch, in the same commit as .github/release-title, and review them in the release pull request. Naming them after the version means a forgotten update can’t republish the previous release’s notes, and the folder keeps the history of every release.

The same files build the documentation site’s Changelog, newest release first, in each reader’s language (English when a release has no Spanish file). It is regenerated on every mkdocs build and mkdocs serve by the hook in scripts/mkdocs/changelog_hook.py, so there is no page to update by hand: docs/changelog.md and docs/changelog.es.md are generated and ignored by Git. Its tests run with python3 -m unittest discover -s scripts/mkdocs.

The Docs workflow (.github/workflows/docs.yml) runs those tests and mkdocs build --strict on every pull request that touches docs/, mkdocs.yml, requirements-docs.txt, scripts/mkdocs/ or .github/release-notes/, release pull requests included, so a broken hook or a broken link fails the check.

How to write them:

  • Describe what changes for the person using Taxilane, in plain language: what they can do now, what works better, what was fixed.
  • No pull request numbers, authors, branch names, internal class names or OpenSpec change names.
  • Short: a heading per group (for example “What’s new” and “Fixes”), one bullet per change, the feature in bold followed by a sentence or two.
  • The Spanish file says the same as the English one; it isn’t a summary.
  • Only headings (# to ###), bullets (one level of nesting), paragraphs, **bold**, `code`, links and bare https:// URLs: the app renders that much and shows anything else as plain text.

For example:

## What's new
- **Release notes inside the app.** Click the ⓘ icon on the update notice to read what a new version brings, in your language.
## Fixes
- Removing a worktree on Windows no longer fails on very long paths.

The workflow builds the GitHub release body from both files: the English notes visible and the Spanish ones in a collapsed “Español” section. Each language is enclosed in HTML comments, which GitHub doesn’t render:

<!-- taxilane:notes:en -->
…contents of X.X.X.md…
<!-- /taxilane:notes:en -->
<details>
<summary>Español</summary>
<!-- taxilane:notes:es -->
…contents of X.X.X.es.md…
<!-- /taxilane:notes:es -->
</details>

The desktop app reads each language between its markers to show the notes in the update notice (see Desktop app), so don’t change the markers without changing the app. Releases published before this format only have GitHub’s generated notes; the app shows them without authors, pull request links or the “Full Changelog” line.

If X.X.X.md is missing, the workflow publishes the release with GitHub’s generated notes and logs a warning naming the missing files, so forgotten notes never block a release. If only X.X.X.es.md is missing, the body has only the English section and the workflow logs a warning; the app then shows the English notes to Spanish users.

Every macOS .dmg is signed with the project’s Developer ID Application certificate under the hardened runtime (entitlements in desktopApp/macos/entitlements.plist), notarized with notarytool using an App Store Connect API key, and stapled, so Gatekeeper opens it without warnings. A missing secret or a rejected notarization fails the macOS build before any tag or release is created: an unsigned installer is never published. The Release candidate run of a release branch builds them the same way, so a signing problem shows up before the merge. The notary log is printed in the job when Apple rejects a submission.

The build only signs when it’s given an identity (-PmacSigningIdentity=<name without the "Developer ID Application: " prefix>, plus -PmacSigningKeychain=<path> if the certificate isn’t in the default keychain). Local builds and tests stay unsigned and need nothing.

The workflow reads five Actions secrets:

  • MACOS_CERTIFICATE_P12: the certificate with its private key, exported from Keychain Access as .p12 and base64-encoded (base64 -i <file>.p12 | gh secret set MACOS_CERTIFICATE_P12 -R CiroFeliu/Taxilane).
  • MACOS_CERTIFICATE_PASSWORD: the password chosen when exporting the .p12.
  • MACOS_NOTARY_KEY: the content of the App Store Connect team API key’s .p8 file, created with the Developer role (gh secret set MACOS_NOTARY_KEY -R CiroFeliu/Taxilane < AuthKey_<id>.p8).
  • MACOS_NOTARY_KEY_ID and MACOS_NOTARY_ISSUER_ID: the key’s ID and the issuer ID shown on App Store Connect’s API keys page.

The signing identity is read from the certificate, so no name or team ID is stored in the repository. Delete the local .p12 and .p8 once the secrets are set.

To check the setup without releasing, run the macOS installer workflow by hand (gh workflow run macos-installer.yml -R CiroFeliu/Taxilane -f version=X.Y.Z): it uploads both signed and notarized .dmg files as workflow artifacts and touches no release, tag or package manager.

  • Renewing the certificate: Developer ID certificates last five years. Before it expires, create a new one from a CSR in Keychain Access at developer.apple.com, export it as .p12 and replace MACOS_CERTIFICATE_P12 and MACOS_CERTIFICATE_PASSWORD. Installers already published keep opening, because their signatures are timestamped.
  • Rotating the API key: create a new team key in App Store Connect, replace MACOS_NOTARY_KEY and MACOS_NOTARY_KEY_ID, check with a manual run, then revoke the old key.

One-time setup by the maintainer, before the first release that runs steps 8 and 9 (until it’s done, those jobs fail without affecting the release):

  1. Create the public repository CiroFeliu/scoop-taxilane with a bucket/ folder and a README with the install commands.
  2. Create a fine-grained token with Contents: read and write on that repository only and store it as the SCOOP_BUCKET_TOKEN secret.
  3. Submit the first winget version by hand with wingetcreate new https://github.com/CiroFeliu/Taxilane/releases/download/v<version>/Taxilane-<version>.msi, using the identifier CiroFeliu.Taxilane and https://taxilane.dev/ as its package URL, and wait for it to be merged (the action can only update an existing package; until then the release job skips winget with a warning).
  4. Create a classic token with public_repo on the CiroFeliu account, which owns the winget-pkgs fork the action pushes to, and store it as the WINGET_TOKEN secret.

The .msi declares a fixed upgrade code (upgradeUuid in desktopApp/build.gradle.kts), so a newer .msi replaces the installed version; don’t change it. jpackage strips java.exe from the bundled runtime, so desktopApp/build.gradle.kts copies it back from the build JDK after createRuntimeImage: the Scoop taxilane command runs it.

The Scoop job of the packaged smoke test checks that the .msi layout still matches the manifest on every release candidate, so a Compose Desktop or jpackage upgrade that changes it fails there.

jpackage’s .deb maintainer scripts add and remove the applications menu entry with xdg-desktop-menu, which fails on a machine without a writable /etc/xdg/menus (servers, minimal containers). Compose doesn’t let the build give jpackage its own scripts, so the Debian packaging tasks in desktopApp/build.gradle.kts rewrite the built .deb: each xdg-desktop-menu line in postinst and prerm prints a warning instead of failing the install or the removal. The build fails if jpackage’s scripts stop having those lines, so a jpackage upgrade that changes them is noticed. The rewrite needs dpkg-deb, which Debian and Ubuntu have.

Every release includes a SHA256SUMS file. To verify a download: shasum -a 256 -c SHA256SUMS --ignore-missing.

Every installer and the CLI zip have a signed build provenance attestation that ties them to the release workflow run and the commit they were built from. To verify a download: gh attestation verify Taxilane-X.X.X-arm64.dmg --repo CiroFeliu/Taxilane. Releases published before the release-provenance-strict-warnings change have no attestation.

Actions outside actions/* and gradle/* are referenced by commit SHA, because they receive secrets. Dependabot (.github/dependabot.yml) proposes updates weekly.

Action Tag Commit
vedantmgoyal9/winget-releaser v2 b7370d4d152efdce803a26cc6ca9eee58cb2ad54

compose.desktop.application.nativeDistributions.packageVersion (in desktopApp/build.gradle.kts) reads the Gradle property appVersion:

packageVersion = (findProperty("appVersion") as String?) ?: "0.0.0"
  • In CI, -PappVersion=X.X.X (extracted from the tag or the release/X.X.X branch name) is always passed, so the published installer always matches the tag.
  • In local builds (without that property) it falls back to the default 0.0.0, which is also the version shown in the app (BuildInfo.VERSION, generated by the generateBuildInfo task, which reruns whenever appVersion changes).
  • The macOS bundle version is derived from it by one rule, macBundleVersion in desktopApp/build.gradle.kts: major + 1 (0.9.0 → 1.9.0, 1.4.0 → 2.4.0). It is always valid for macOS, increases with the release version and never collides. The .dmg files are named after the release version, never the bundle version.
  • jpackage requires strictly numeric versions (MAJOR.MINOR.PATCH), it doesn’t accept suffixes like -dev. On macOS the first number must also be greater than zero, so packaging locally (packageDmg, createDistributable) needs an explicit version, e.g. ./gradlew :desktopApp:packageDmg -PappVersion=1.0.0; ./gradlew :desktopApp:run works with the default.

Release-day runbook for 1.0.0 (ShogunAi becomes Taxilane)

Section titled “Release-day runbook for 1.0.0 (ShogunAi becomes Taxilane)”

The code of 1.0.0 already points to the new repository names, so they must exist before the release workflow runs:

  1. Merge the change into develop and cut release/1.0.0 as usual.
  2. Before merging the release pull request, rename on GitHub CiroFeliu/ShogunAi to CiroFeliu/Taxilane, CiroFeliu/homebrew-shogunai to CiroFeliu/homebrew-taxilane and CiroFeliu/scoop-shogunai to CiroFeliu/scoop-taxilane. Check that HOMEBREW_TAP_TOKEN and SCOOP_BUCKET_TOKEN still list the renamed repositories.
  3. Update local clones’ remotes (git remote set-url) and the GitHub Pages settings if needed.
  4. Merge the release pull request. Afterwards, check that the tap has Casks/taxilane.rb and cask_renames.json and no Casks/shogunai.rb, and that the bucket has taxilane.json and shogunai.json.
  5. Rehearse an upgrade from the previous ShogunAi on a clean account with Homebrew, the .dmg, Scoop and the .msi: the folder moves, the shogun command warns and runs taxilane, and taxilane migrate leaves nothing behind.
  6. Once the pending CiroFeliu.ShogunAi winget submission is resolved, submit CiroFeliu.Taxilane.

Rollback: the previous ShogunAi release keeps working on its own, since its data is untouched until Taxilane first runs. A user who goes back after the move renames ~/.taxilane to ~/.shogunai.

The Release workflow is also triggered by a direct tag push (git tag vX.X.X && git push origin vX.X.X), without going through a release/ branch. Useful for one-off hotfixes, but the normal flow is the release/* branch flow described above.

Why the tag doesn’t trigger the workflow on its own in the merge case

Section titled “Why the tag doesn’t trigger the workflow on its own in the merge case”

If the merge job pushed the tag using the default GITHUB_TOKEN, GitHub would not trigger the same workflow’s on: push: tags (a restriction to prevent loops). That’s why the build and publish don’t depend on that re-trigger: they run in the same run that creates the tag, using needs between jobs.