Skip to content

Build the DMG in CI, publish betas from main and promote stable by hand #3

Closed

Description

@M4n0x

Edited 2026-10-16: betas now come from main instead of a develop branch, and a stable release is started by hand from a commit that already shipped as a beta.

Problem

Releases from main publish a version, changelog and tag, but no installer: no release so far (v0.1.1 to v0.4.0) has assets. Anyone who wants the app must build the DMG locally with scripts/package.sh. There is also no way to ship a build for testing before it reaches the stable release.

Proposal

Build dist/StableBar.dmg in CI and release it on two channels, both from main. With no develop branch, nothing has to be merged between branches.

  • Beta: every push to main publishes vX.Y.Z-beta.N as a GitHub prerelease with the DMG. X.Y.Z is the next stable version, so each beta previews it.
  • Stable: a maintainer starts the release by hand. It ships only a commit that already went out as a beta, as vX.Y.Z with the DMG, changelog and tag as today.

Changes this needs:

  1. .github/workflows/ci.yml, beta: add a beta job that runs after test on pushes to main. It asks semantic-release for the next version in dry-run mode and stops if there is nothing to release. Otherwise it runs ./scripts/set-version.sh with X.Y.Z-beta.<run number>, builds with ./scripts/package.sh, and runs gh release create vX.Y.Z-beta.N dist/StableBar.dmg --prerelease --target "$GITHUB_SHA" --generate-notes. It commits nothing, so CHANGELOG.md and Info.plist on main change only at stable releases.
  2. .github/workflows/ci.yml, stable: run the release job on workflow_dispatch instead of on every push. Before semantic-release, it checks that a v*-beta.* tag points at the commit, and stops otherwise. Give it its own concurrency group so a newer push can't cancel it while it waits.
  3. .releaserc.json: give @semantic-release/exec "verifyReleaseCmd": "echo ${nextRelease.version} > .next-version" for the beta job's dry run, and set its prepareCmd to ./scripts/set-version.sh ${nextRelease.version} $GITHUB_RUN_NUMBER && ./scripts/package.sh. Give @semantic-release/github { "assets": [{ "path": "dist/StableBar.dmg" }] }. semantic-release ignores prerelease tags when it looks for the last release on main, so beta tags don't change stable versions.
  4. scripts/set-version.sh: CFBundleVersion accepts only digits and dots, so 0.5.0-beta.3 can't go there. Take a build number as a second argument: write the full version to CFBundleShortVersionString and the CI run number to CFBundleVersion. Both jobs live in ci.yml and share github.run_number, which only goes up, so a stable build always gets a higher number than the beta of the same commit. In-app updates (Check for and install updates in the app, on a stable or beta channel #22) rely on that. Add a test in ReleaseTests.swift.
  5. "Commits and releases" in CONTRIBUTING.md: describe both channels and how to start a stable release (Actions → CI → Run workflow).

Open questions

  • Beta cadence: a beta on every push to main can mean several a day, and a docs-only push still builds one while unreleased fixes are waiting. Is that fine, or should betas run on a schedule, for example at most once a day and only when main has changed?
  • Signing and notarization: without SIGNING_IDENTITY and NOTARY_PROFILE, package.sh makes an ad-hoc-signed DMG that macOS blocks as coming from an unidentified developer. Signing in CI needs a Developer ID certificate and notary credentials as repo secrets, imported into a temporary keychain on the runner. Only the repo owner can add those. Should CI ship unsigned DMGs until they exist?
  • Architecture: package.sh builds for the build Mac's processor family, and macos-26 runners are Apple silicon, so a CI DMG won't run on Intel Macs. Should it be a universal (arm64 + x86_64) build?

Possible today

Partly. scripts/package.sh builds the DMG locally and can sign and notarize it. Every push to main with releasable commits makes a stable release, without a DMG. There is no beta channel.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 15, 2026
  2. changed the title [-]Build the DMG in CI and release stable from main and beta from develop[/-] [+]Build the DMG in CI, publish betas from main and promote stable by hand[/+] on Oct 16, 2026
  3. stablebar-releases commented on Oct 21, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.5.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions