-
Notifications
You must be signed in to change notification settings - Fork 1
/
codemagic.yaml
71 lines (67 loc) · 6.42 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
# Automatically generated on 2022-11-11 UTC from https://codemagic.io/app/63347f270c4aeb81fb498a6d/settings
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
workflows:
keyboard-main:
name: Keyboard Main
max_build_duration: 30
environment:
groups:
- Keyboard
flutter: 3.3.2
xcode: latest
cocoapods: default
triggering:
events:
- push
branch_patterns:
- pattern: main
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: Setting up the environment
script: |
flutter packages pub get
flutter config --enable-web
echo $DOTENV1 | base64 --decode > $FCI_BUILD_DIR/dotenv
echo $GOOGLE_SERVICES_JSON | base64 --decode > $FCI_BUILD_DIR/android/app/google-services.json
flutter pub get
- name: Building
script: |
flutter pub run build_runner build
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"
artifacts:
- build/**/outputs/apk/**/*.apk
- build/**/outputs/bundle/**/*.aab
- build/**/outputs/**/mapping.txt
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- build/web.zip
- '*.snap'
- build/windows/**/*.msix
- flutter_drive.log
publishing:
email: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