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