LifeMate — Personal, Family & Learning Companion
design/mobile-accessibility-v2
chore/phase1-repository-cleanup
deploy/stable-web-apk
deployment-static
design/mobile-accessibility-v2
design/mobile-navigation-review
docs/child-education-access-decision
docs/offline-data-rescue-options
docs/owner-guide-and-delivery-plan
docs/phase1-policy-options
docs/public-review-live-2026-10-15
feat/aparat-learning-library
feat/child-device-safety
feat/child-identity-schema
feat/flutter-mobile-navigation
feat/learning-content-operations
feat/local-signing-preflight
feat/online-family-stage0
feat/personal-encrypted-recovery
feat/private-planner-series-api
feat/public-review-page
feat/standalone-weekly-planner
feat/weekly-planner-android
final-feature-1/iran-family-school
fix/auth-abuse-expiry-safety
fix/auth-expiry-after-lock
fix/backend-request-safety
fix/lifeguide-bootstrap-naming-ci
fix/lifeguide-pages-qa-base-preflight
fix/lifeguide-qa-pages-env-deployment
fix/local-task-persistence
fix/managed-child-session-boundary
fix/personal-jalali-dates
fix/personal-notification-controls
fix/personal-upgrade-delivery-guard
fix/sms-approval-gates
fix/study-duration-display
infra/cloudflare-neon-migration
infra/lifeguide-cloudflare-qa
infra/lifeguide-github-pages-qa
infra/lifeguide-supabase-qa
main
phase-1/foundation-completion
phase-2/product-foundation-identity
phase-3/planner-school-family-core
phase-4/ai-learning-wellbeing
phase-5/hardening-observability-release
test/android-reminder-acceptance
test/personal-notification-settings
test/personal-recovery-acceptance
test/role-entry-apk
| 1 | name: LifeGuide operator deploy (DISABLED by default) |
| 2 | on: |
| 3 | workflow_dispatch: |
| 4 | inputs: |
| 5 | confirm: |
| 6 | description: 'Explicit owner approval for this live change: type APPROVE_LIVE_DEPLOY' |
| 7 | required: true |
| 8 | type: string |
| 9 | permissions: {contents: read} |
| 10 | concurrency: {group: lifeguide-operator-deploy, cancel-in-progress: false} |
| 11 | jobs: |
| 12 | deploy: |
| 13 | if: vars.LIFEGUIDE_DEPLOY_ENABLED == 'true' && inputs.confirm == 'APPROVE_LIVE_DEPLOY' |
| 14 | environment: owner-approved-server |
| 15 | runs-on: ubuntu-latest |
| 16 | steps: |
| 17 | - uses: actions/checkout@v4 |
| 18 | - name: Deploy reviewed commit to operator-configured server |
| 19 | env: |
| 20 | DEPLOY_HOST: ${{ secrets.LIFEGUIDE_DEPLOY_HOST }} |
| 21 | DEPLOY_USER: ${{ secrets.LIFEGUIDE_DEPLOY_USER }} |
| 22 | DEPLOY_KEY: ${{ secrets.LIFEGUIDE_DEPLOY_KEY }} |
| 23 | KNOWN_HOSTS: ${{ secrets.LIFEGUIDE_DEPLOY_KNOWN_HOSTS }} |
| 24 | run: | |
| 25 | set -euo pipefail |
| 26 | [[ "$DEPLOY_HOST" =~ ^[a-zA-Z0-9.-]+$ ]] |
| 27 | [[ "$DEPLOY_USER" =~ ^[a-zA-Z0-9_-]+$ ]] |
| 28 | umask 077 |
| 29 | mkdir -p "$RUNNER_TEMP/lifeguide-ssh" |
| 30 | printf '%s\n' "$DEPLOY_KEY" > "$RUNNER_TEMP/lifeguide-ssh/key" |
| 31 | printf '%s\n' "$KNOWN_HOSTS" > "$RUNNER_TEMP/lifeguide-ssh/known_hosts" |
| 32 | ssh_args=(-i "$RUNNER_TEMP/lifeguide-ssh/key" -o BatchMode=yes -o StrictHostKeyChecking=yes -o "UserKnownHostsFile=$RUNNER_TEMP/lifeguide-ssh/known_hosts") |
| 33 | target="$DEPLOY_USER@$DEPLOY_HOST" |
| 34 | release="/opt/lifeguide/releases/$GITHUB_SHA" |
| 35 | ssh "${ssh_args[@]}" "$target" "test -f /opt/lifeguide/shared/.env && mkdir -p '$release'" |
| 36 | git archive HEAD | ssh "${ssh_args[@]}" "$target" "tar -x -C '$release'" |
| 37 | ssh "${ssh_args[@]}" "$target" "cd '$release' && ln -sfn /opt/lifeguide/shared/.env .env && ln -sfn /opt/lifeguide/shared/runtime-config.json deployment/runtime-config.json && rm -rf deployment/downloads && ln -s /opt/lifeguide/shared/downloads deployment/downloads && bash scripts/local-deploy.sh && ln -sfn '$release' /opt/lifeguide/current" |
| 38 | - name: Remove deployment credentials |
| 39 | if: always() |
| 40 | run: rm -rf "$RUNNER_TEMP/lifeguide-ssh" |