From 87466f9d051d690d5edfc459b76354432c93d439 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Wed, 25 Mar 2026 22:50:33 -0400 Subject: [PATCH] Add apk build workflow --- .github/workflows/android.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..44b8d71 --- /dev/null +++ b/.github/workflows/android.yml @@ -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 \ No newline at end of file