-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (32 loc) · 1.06 KB
/
build_app.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
name: Build app
on:
pull_request:
push:
branches: ["main"]
jobs:
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
- name: Get Dependencies
run: flutter pub get
- name: Decode google-services.json
run: echo $GOOGLE_SERVICES_JSON | base64 --decode > android/app/google-services.json
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON_ANDROID_BASE64 }}
- name: Build Android on debug mode
run: flutter build appbundle --debug
ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
- name: Decode google-services.json secrets
env:
GOOGLESERVICES_INFO_PLIST_JSON: ${{ secrets.GOOGLESERVICE_INFO_PLIST_IOS_BASE64 }}
run: |
echo $GOOGLESERVICES_INFO_PLIST_JSON | base64 --decode > ios/Runner/GoogleService-Info.plist
- run: flutter pub get
- name: Build ios
run: flutter build ios --release --no-codesign