-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.03 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
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
flutter_build_android:
name: Build Flutter (android) apps
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: "11.x"
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter pub get
- run: flutter build apk
- uses: actions/upload-artifact@v3
with:
name: release-apk
path: frontend/build/app/outputs/apk/release/app-release.apk
flutter_build_ios:
name: Build Flutter (iOS) app
runs-on: macos-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- run: flutter clean
- run: flutter pub get
- run: flutter build ios --release --no-codesign