Branches

A change moves up through three branches:

feature branch --PR--> main --PR--> beta --PR--> production
BranchWhat it isWhat runsWho merges
mainDaily work. Every PR goes here first.ChecksAny reviewer
betaNext release, for testers.ChecksOwner
productionWhat users run.Checks, then the releaseOwner only

Checks (.github/workflows/checks.yml):

The release (.github/workflows/release.yml) runs on each push to production, after the checks pass:

The Android build and server deploy still run from the Mac with assistantx-app-release and assistantx-deploy, from a production checkout. CI does not hold the signing key. Moving the Android build into CI is on Next.

Rules

Promote a release

  1. On main, all checks green. Open a PR main -> beta. Title: Beta: <date>.
  2. Testers use the beta build. Fix bugs on main and promote again.
  3. When beta is good, open a PR beta -> production. Title: Release: <date>. The body lists what users will see.
  4. The owner merges. The release workflow writes the changelog and tags it.
  5. From the production checkout, run assistantx-deploy and assistantx-app-release.

Roll back: revert the merge on production, then deploy and re-publish the last good APK.