Deploy from main checkout, not the worktree

phone_deploy refuses a production install from a worktree (exit 49),
so the board's deploy of this repo always failed on the phone target.

Todo: 2556952d

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Krzysztof Rudnicki 2026-11-19 20:48:03 +01:00
parent 660d82282c
commit d5764fce7b
3 changed files with 6 additions and 4 deletions

View File

@ -50,7 +50,8 @@ and sync peer-to-peer through a GitHub repo used as dumb storage.
- lint: `flutter analyze`
- coverage: `flutter test --coverage --reporter=compact`
- coverage-gaps: `coverage-gaps coverage/lcov.info`
- deploy: `scripts/deploy.sh` (MCP service, desktop pacman package, phone release; exits non-zero unless every health check passes)
- deploy: `git -C ~/src/todo pull --ff-only && ~/src/todo/scripts/deploy.sh` (MCP service, desktop pacman package, phone release;
exits non-zero unless every health check passes; runs from the main checkout because phone_deploy refuses a worktree, exit 49)
## Architecture

View File

@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.101+1
version: 1.0.102+1
environment:
sdk: ^3.12.2

View File

@ -22,8 +22,9 @@
# version means equal code); the MCP binary is cheap and always rebuilt.
#
# Nothing live runs from ~/src/todo (the MCP is a frozen binary, the desktop
# app lives in /opt/todo), so this deploys the checkout it sits in and never
# pulls kuhy's working tree.
# app lives in /opt/todo), so this deploys the checkout it sits in. The
# declared deploy (CLAUDE.md) fast-forwards ~/src/todo and runs from there:
# phone_deploy refuses a production install from a worktree (exit 49).
# ============================================================================
set -euo pipefail