-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (37 loc) · 1.29 KB
/
flutter_cd.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
name: Flutter CD
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [ 'stable' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.flutter-channel }}
- name: Print Dart SDK version
run: dart --version
- name: Print Flutter SDK version
run: flutter --version
- name: Install dependencies and run build runner
run: make sync
- name: Gen file google-services.json
run: echo "${{ secrets.GOOGLE_SERVICES }}" | base64 --decode > android/app/google-services.json
- name: Gen file GoogleService-Info.plist
run: echo "${{ secrets.GOOGLE_SERVICES_INFO }}" | base64 --decode > ios/GoogleService-Info.plist
- run: echo "${{ secrets.GOOGLE_SERVICES_INFO }}" | base64 --decode > ios/Runner/GoogleService-Info.plist
- name: Build APK
run: flutter build apk --no-shrink
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: app-${{ matrix.flutter-channel }}
path: build/app/outputs/apk/release/app-release.apk