LifeMate — Personal, Family & Learning Companion

fix/backend-request-safety
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
yml 68 lines 2 KB
Raw
1 name: Publish static PWA and APK
2
3 on:
4 push:
5 branches: [main]
6 workflow_dispatch:
7
8 permissions:
9 contents: write
10
11 jobs:
12 publish:
13 runs-on: ubuntu-latest
14 defaults:
15 run:
16 working-directory: apps/lifemate
17 steps:
18 - uses: actions/checkout@v4
19
20 - uses: subosito/flutter-action@v2
21 with:
22 channel: stable
23 cache: true
24
25 - run: flutter pub get
26
27 - name: Build PWA against staging API
28 run: >
29 flutter build web --release
30 --dart-define=LIFEMATE_API_URL=https://lifemate-api-fn-staging.up.railway.app
31
32 - name: Build Android APK against staging API
33 run: >
34 flutter build apk --release
35 --dart-define=LIFEMATE_API_URL=https://lifemate-api-fn-staging.up.railway.app
36
37 - name: Publish stable APK release
38 env:
39 GH_TOKEN: ${{ github.token }}
40 run: |
41 TAG=feature1-test
42 git tag -f "$TAG" "$GITHUB_SHA"
43 git push origin "refs/tags/$TAG" --force
44 gh release view "$TAG" >/dev/null 2>&1 || \
45 gh release create "$TAG" \
46 --title "LifeMate Feature 1 Test" \
47 --notes "Latest installable Android test build connected to the LifeMate staging API." \
48 --prerelease \
49 --target "$GITHUB_SHA"
50 gh release upload "$TAG" \
51 build/app/outputs/flutter-apk/app-release.apk#LifeMate.apk \
52 --clobber
53
54 - name: Prepare static release directory
55 run: |
56 rm -rf ../../public-release
57 mkdir -p ../../public-release
58 cp -R build/web/. ../../public-release/
59 touch ../../public-release/.nojekyll
60
61 - name: Publish immutable static branch
62 uses: peaceiris/actions-gh-pages@v4
63 with:
64 github_token: ${{ secrets.GITHUB_TOKEN }}
65 publish_branch: deployment-static
66 publish_dir: ./public-release
67 force_orphan: true
68 commit_message: "publish: LifeMate PWA and APK ${{ github.sha }}"