-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathcodemagic.yaml
47 lines (44 loc) · 1.32 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
# Automatically generated on 2022-04-02 UTC from https://codemagic.io/app/6240c24a66f743ede7aca591/settings
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
workflows:
android-workflow:
name: Android Workflow
max_build_duration: 60
environment:
flutter: stable
vars:
FCI_KEYSTORE_PATH: /tmp/release-key.keystore
groups:
- release-keystore
cache:
cache_paths:
- $HOME/.gradle/caches
- $FLUTTER_ROOT/.pub-cache
triggering:
events:
- push
branch_patterns:
- pattern: '*'
include: true
source: true
tag_patterns:
- pattern: '*'
include: true
scripts:
- name: Set up local properties
script: |
echo "flutter.sdk=$HOME/programs/flutter" > "$FCI_BUILD_DIR/android/local.properties"
- name: Get Flutter packages
script: flutter packages pub get
- name: Build for Android
script: |
echo $FCI_KEYSTORE | base64 --decode > $FCI_KEYSTORE_PATH
flutter build appbundle
artifacts:
- build/**/outputs/apk/**/*.apk
- build/**/outputs/bundle/**/*.aab
- build/**/outputs/**/mapping.txt
publishing:
email:
recipients:
- sbis1999@gmail.com