-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathcodemagic.yaml
42 lines (37 loc) · 1.01 KB
/
codemagic.yaml
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
workflows:
android-deploy-workflow:
name: Android Deployment Workflow
instance_type: mac_mini_m1
max_build_duration: 30
triggering:
events:
- tag
cancel_previous_builds: true
environment:
groups:
- google_credentials
flutter: stable
xcode: latest
cocoapods: default
scripts:
- name: Setup the Keystore
script: |
echo $KEYSTORE_FILE | base64 --decode > /tmp/keystore.jks
cat >> "$CM_BUILD_DIR/android/key.properties" << EOF
storePassword=$KEYSTORE_PASSWORD
keyPassword=$KEYSTORE_KEY_PASSWORD
keyAlias=upload
storeFile=/tmp/keystore.jks
EOF
- name: Build AAB File
script: |
cd $CM_BUILD_DIR
flutter packages pub get
flutter build appbundle
artifacts:
- build/**/outputs/**/*.aab
publishing:
google_play:
credentials: $GOOGLE_PLAY_SERVICE_ACCOUNT
track: alpha
submit_as_draft: true