Add apk build workflow
This commit is contained in:
parent
ea72654887
commit
87466f9d05
1 changed files with 28 additions and 0 deletions
28
.github/workflows/android.yml
vendored
Normal file
28
.github/workflows/android.yml
vendored
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue