LifeMate — Personal, Family & Learning Companion
deploy: publish APK as stable GitHub release
davoodmehraban89 committed
Oct 5, 2026 at 22:17 UTC
935edc493416f57734bf5009b827f35fbfb41769
1 file changed
+18
-2
.github/workflows/publish-static.yml
+18
-2
@@ -34,12 +34,28 @@ jobs:
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
40
- mkdir -p ../../public-release/downloads
57
+ mkdir -p ../../public-release
58
cp -R build/web/. ../../public-release/
42
- cp build/app/outputs/flutter-apk/app-release.apk ../../public-release/downloads/LifeMate.apk
59
touch ../../public-release/.nojekyll
60
61
- name: Publish immutable static branch