Skip to content

feat(ci): start Codemagic releases from tags - #6

Merged
hyochan merged 1 commit into
mainfrom
feat/codemagic-tag-releases
Nov 18, 2026
Merged

hyochan merged 1 commit into
mainfrom
feat/codemagic-tag-releases

Conversation

@hyochan

@hyochan hyochan commented Nov 18, 2026

Copy link
Copy Markdown
Member

Summary

Releases now start from git tags pushed to this repo. Codemagic does the building and publishing.

Tag Workflow Result
v<version> (e.g. v1.6.0) on main ios-production, android-production Signed binaries go to TestFlight and a Play internal draft. Review submission and production rollout stay manual.
annotated ota-<label> on the tip of main ota-production Runs scripts/ota-release.zsh all with OTA_VERIFY=local. The tag message becomes OTA_MESSAGE, and the update goes to the Patch Production deployment.
annotated ota-dry-<label> ota-production Runs every gate without publishing.

Guards:

  • The store workflows reject a tag that is not on main or does not match package.json.
  • The OTA workflow rejects a tag that is not the current tip of main or is not annotated.
  • All workflows can still be started by hand.

Setup done outside the repo

  • A Patch personal access token, codemagic-ci-bookoo, valid for 365 days, is stored in the secure Codemagic group bookoo_production as CODEMAGIC_PATCH_TOKEN.
  • A GitHub webhook sends events to https://api.codemagic.io/hooks/<app>. It subscribes to push and create only, never to pull_request. That way no PR, including one from a fork, can start a build whose yaml could reach the secure group. The ping returned 202.

Verification

  • I extracted the two new OTA steps from this yaml and ran them on a fresh clone at the annotated tag ota-dry-local-test. The tag check passed, the tag message was read, lint:all, typecheck and tests passed (1746), and the run ended with Verified BooKoo all OTA release gates.
  • After merge, I'll push an ota-dry- tag to run the same dry run on Codemagic.

🤖 Generated with Claude Code

Push v<version> on main to build and upload both store binaries, or an
annotated ota-<label> tag on the tip of main to publish a Codemagic Patch
update through scripts/ota-release.zsh; ota-dry-<label> runs every gate
without publishing. The store workflows refuse a tag that is off main or does
not match package.json, and the OTA workflow refuses a tag that is not the
current main or not annotated, since its message is the release note.

The Patch token lives in the secure bookoo_production group. The GitHub
webhook sends push and tag-creation events only, so pull requests, including
ones from forks, never start a Codemagic build that could read that group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hyochan hyochan added ✨ configuration Configuration for better code 🚀 cd Cloud Deploy labels Nov 18, 2026
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
bookoo-public Ready Ready Preview Nov 18, 2026 6:45am UTC

@hyochan
hyochan merged commit ccd52ed into main Nov 18, 2026
6 checks passed
@hyochan
hyochan deleted the feat/codemagic-tag-releases branch November 18, 2026 06:51

This branch was successfully deployed

1 active deployment
Preview — ce6d386a Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚀 cd Cloud Deploy ✨ configuration Configuration for better code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant