-
Notifications
You must be signed in to change notification settings - Fork 1
/
codemagic.yaml
76 lines (69 loc) · 6.51 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Automatically generated on 2022-11-11 UTC from https://codemagic.io/app/6335e7660c4aeb132b0c52e9/settings
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
workflows:
questions-master:
name: Questions master
max_build_duration: 30
environment:
groups:
- Questions
flutter: 3.3.2
xcode: latest
cocoapods: default
triggering:
events:
- push
branch_patterns:
- pattern: master
include: true
source: true
tag_patterns:
- pattern: '*'
include: true
scripts:
- name: Set up key.properties
script: |
echo $FCI_KEYSTORE | base64 --decode > $FCI_KEYSTORE_PATH
cat >> "$FCI_BUILD_DIR/android/key.properties" <<EOF
storePassword=$FCI_KEYSTORE_PASSWORD
keyPassword=$FCI_KEY_PASSWORD
keyAlias=$FCI_KEY_ALIAS
storeFile=/tmp/keystore.keystore
EOF
- name: Set up local.properties
script:
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
- name: Setting up the environment
script: |
echo $DOTENV1 | base64 --decode > $FCI_BUILD_DIR/dotenv
flutter packages pub get
flutter config --enable-web
echo $GOOGLE_SERVICES_JSON | base64 --decode > $FCI_BUILD_DIR/android/app/google-services.json
- name: Testing
script:
flutter test
- name: Building
script: |
flutter build appbundle --release --build-name=1.0.$(($BUILD_NUMBER + 1)) --build-number=$(($BUILD_NUMBER + 1))
flutter build web --release
cd build/web
7z a -r ../web.zip ./*
- name: Deploy to web
script:
firebase deploy --token "$FIREBASE_TOKEN_QUESTION"
artifacts:
- build/**/outputs/apk/**/*.apk
- build/**/outputs/bundle/**/*.aab
- build/**/outputs/**/mapping.txt
- build/web.zip
- '*.snap'
-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