From 9b3e8e06d16ff0c0e476d55b9c6ec819da263666 Mon Sep 17 00:00:00 2001 From: hyochan Date: Thu, 19 Nov 2026 09:39:32 +0900 Subject: [PATCH] feat(ci): dispatch Codemagic releases from GitHub Actions Add a workflow_dispatch Release workflow, as in Martie. On a main commit whose CI passed it pushes the tag Codemagic builds from: v plus a GitHub Release for store builds, annotated ota-- for a Patch OTA, or ota-dry-- for the same run without the upload. Pushing the tag by hand still works when Actions cannot run. scripts/ota-release.zsh now runs `expo prebuild --no-install --clean` for each platform inside the production env:exec call, right before `cmpatch release-react`. Patch fingerprints the generated native projects and a clean clone has none, so the first real OTA would otherwise fail. On Codemagic (CM_BUILD_ID) the script accepts a tag anywhere on main, since main may move while the build queues, and runs CI's check commands itself. OTA_DRY_RUN now builds the bundle and fingerprint with `release-react --dry-run` instead of stopping after the gates. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/release-update/SKILL.md | 28 +++++--- .github/workflows/release.yml | 96 ++++++++++++++++++++++++++ AGENTS.md | 5 +- CLAUDE.md | 5 +- codemagic.yaml | 34 ++++----- docs/ai/WORKFLOWS.md | 37 +++++++--- scripts/ota-release.zsh | 84 ++++++++++++++-------- test/release/otaRelease.test.ts | 58 +++++++++++++++- 8 files changed, 277 insertions(+), 70 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.agents/skills/release-update/SKILL.md b/.agents/skills/release-update/SKILL.md index f5dbe89..9ecb4c6 100644 --- a/.agents/skills/release-update/SKILL.md +++ b/.agents/skills/release-update/SKILL.md @@ -77,9 +77,11 @@ existing production binary and no store binary or compliance update is needed. - `bun eas:prod:android` - `bun eas:prod:ios` - `bun eas:preview:android` for an internal-distribution check first - - or the Codemagic `ios-production` / `android-production` workflows. Push a - `v` tag on the merged main commit (`git tag v1.6.0 && git push - origin v1.6.0`); the tag must match `package.json`. They load the `production` EAS environment, + - or the Codemagic `ios-production` / `android-production` workflows: run + the GitHub Actions `Release` workflow with kind `store` (`gh workflow run + Release -f kind=store -f message=""`). After CI passed on main it + tags `v` and creates a GitHub Release; pushing that + tag by hand does the same when Actions cannot run. They load the `production` EAS environment, sign from the secure `bookoo_production` group, fail unless the bundle targets the production Convex host (and, on Android, unless the upload key signed it), then upload to TestFlight and a Play internal draft. Review @@ -109,12 +111,18 @@ existing production binary and no store binary or compliance update is needed. a useful message explicitly: - `OTA_CONFIRM_COMPATIBLE=1 OTA_MESSAGE="" bun ota:release` - append `:ios` or `:android` to target one platform. - - or from Codemagic: push an annotated `ota-