Add apk build workflow

This commit is contained in:
Henry Hiles 2026-03-25 22:50:33 -04:00
commit 87466f9d05
No known key found for this signature in database

28
.github/workflows/android.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: "Build APK"
on:
push:
branches: ["main"]
tags: ["*"]
workflow_dispatch:
jobs:
build-apk:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Lix GHA Installer Action
uses: samueldr/lix-gha-installer-action@v2026-02-22
with:
extra_nix_config: experimental-features = nix-command flakes flake-self-attrs
- name: Build app
run: nix develop --command -- flutter pub get && dart scripts/generate.dart && flutter pub run build_runner build && flutter build apk --release
- name: Upload installer artifact
uses: actions/upload-artifact@v6
with:
path: build/app/outputs/flutter-apk/app-release.apk