LifeMate — Personal, Family & Learning Companion
ci: build role-first Life Guide APK
davoodmehraban89 committed
Oct 6, 2026 at 21:47 UTC
3022f901e4a924b69333a022149c0f687503ba6b
1 file changed
+36
.github/workflows/role-entry-apk.yml
new
+36
@@ -0,0 +1,36 @@
1
+name: Build Life Guide role-entry APK
2
+
3
+on:
4
+ push:
5
+ branches: [test/role-entry-apk]
6
+ workflow_dispatch:
7
+
8
+permissions:
9
+ contents: write
10
+
11
+jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ defaults:
15
+ run:
16
+ working-directory: apps/lifemate
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: subosito/flutter-action@v2
20
+ with:
21
+ channel: stable
22
+ cache: true
23
+ - run: flutter pub get
24
+ - name: Test role-first entry
25
+ run: flutter test test/role_entry_test.dart
26
+ - name: Build Android APK
27
+ run: flutter build apk --release --target=lib/role_entry_main.dart
28
+ - name: Publish test APK
29
+ env:
30
+ GH_TOKEN: ${{ github.token }}
31
+ run: |
32
+ TAG=lifeguide-role-entry-test
33
+ git tag -f "$TAG" "$GITHUB_SHA"
34
+ git push origin "refs/tags/$TAG" --force
35
+ gh release view "$TAG" >/dev/null 2>&1 || gh release create "$TAG" --title "Life Guide Role Entry Test" --notes "Android test build with login bypassed and role-first entry for child, mother, and father." --prerelease --target "$GITHUB_SHA"
36
+ gh release upload "$TAG" build/app/outputs/flutter-apk/app-release.apk#LifeGuide-role-entry-test.apk --clobber