-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 1.16 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
name: Build CI
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-android:
name: Build Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Save the store key properties to android/key.properties
env:
ANDROID_STORE_KEY_PROPERTIES: ${{ secrets.ANDROID_STORE_KEY_PROPERTIES }}
run: |
echo $ANDROID_STORE_KEY_PROPERTIES > android/key.properties
- name: Decode the store key to android/GooglePlaystore.jks
env:
GOOGLE_PLAYSTORE_JKS_BASE64: ${{ secrets.GOOGLE_PLAYSTORE_JKS_BASE64 }}
run: |
echo $GOOGLE_PLAYSTORE_JKS_BASE64 | base64 --decode > android/GooglePlaystore.jks
- run: pwd
- run: tail -n 1 android/key.properties
- run: echo $GOOGLE_PLAYSTORE_JKS_BASE64 | tail -c 10
- run: ls -R
- run: flutter --version
- run: flutter pub get
- run: flutter build apk
- run: flutter build appbundle