-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (43 loc) · 1.29 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build APK
on:
pull_request:
branches:
- development
push:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: app
steps:
- name: Set up Repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.27.2"
channel: "stable"
- name: Get dependencies
run: flutter pub get
- name: Initialize Reflectable
run: dart run build_runner build
- name: Create app_config_local.dart from template
run: cp lib/app_config_local.template lib/app_config_local.dart
- name: Ensure Build Script is Executable
run: chmod +x build.sh
- name: Run Build Script
run: |
./build.sh --build --local
echo "Build script exited with code $?"
- name: List build output files
run: ls -R build/app/outputs/flutter-apk
- name: List build output files
run: ls -lh ${{ github.workspace }}/build/app/outputs/flutter-apk
- name: Upload APK Artifact
uses: actions/upload-artifact@v4
with:
name: app-apk
path: ${{ github.workspace }}/build/app/outputs/flutter-apk/app-debug.apk