LifeMate — Personal, Family & Learning Companion

test/android-reminder-acceptance
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 43 lines 1.73 KB
Raw
1 name: LifeGuide signed APK (manual; disabled by default)
2 on:
3 workflow_dispatch:
4 inputs:
5 confirm:
6 description: 'Owner approval: type BUILD_SIGNED_TEST_ARTIFACT'
7 required: true
8 type: string
9 permissions: {contents: read}
10 jobs:
11 signed-apk:
12 if: vars.LIFEGUIDE_RELEASE_SIGNING_CONFIGURED == 'true' && inputs.confirm == 'BUILD_SIGNED_TEST_ARTIFACT'
13 environment: release-signing
14 runs-on: ubuntu-latest
15 defaults:
16 run: {working-directory: apps/lifemate}
17 steps:
18 - uses: actions/checkout@v4
19 - uses: subosito/flutter-action@v2
20 with: {flutter-version: '3.47.6', channel: stable, cache: true}
21 - name: Prepare owner key outside repository
22 env:
23 KEYSTORE_BASE64: ${{ secrets.LIFEGUIDE_KEYSTORE_BASE64 }}
24 run: |
25 umask 077
26 test -n "$KEYSTORE_BASE64"
27 printf '%s' "$KEYSTORE_BASE64" | base64 --decode > "$RUNNER_TEMP/lifeguide-release.jks"
28 - name: Build genuinely signed release artifact
29 env:
30 LIFEGUIDE_KEYSTORE_PATH: ${{ runner.temp }}/lifeguide-release.jks
31 LIFEGUIDE_KEYSTORE_PASSWORD: ${{ secrets.LIFEGUIDE_KEYSTORE_PASSWORD }}
32 LIFEGUIDE_KEY_ALIAS: ${{ secrets.LIFEGUIDE_KEY_ALIAS }}
33 LIFEGUIDE_KEY_PASSWORD: ${{ secrets.LIFEGUIDE_KEY_PASSWORD }}
34 run: |
35 flutter pub get
36 flutter test
37 flutter build apk --release
38 cp build/app/outputs/flutter-apk/app-release.apk build/LifeGuide.apk
39 - uses: actions/upload-artifact@v4
40 with: {name: LifeGuide-signed-apk, path: apps/lifemate/build/LifeGuide.apk, if-no-files-found: error}
41 - name: Remove private key
42 if: always()
43 run: rm -f "$RUNNER_TEMP/lifeguide-release.jks"