-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodemagic.yaml
37 lines (35 loc) · 1010 Bytes
/
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
workflows:
react-native:
triggering:
events:
- push
branch_patterns:
- pattern: develop
include: false
cancel_previous_builds: true
name: React Native App
environment:
node: latest
scripts:
- yarn install
- yarn
- echo "sdk.dir=$HOME/programs/android-sdk-macosx" > "$FCI_BUILD_DIR/android/local.properties"
- |
# make sudo
cd android
chmod +x gradlew
- |
# clean gradlew
cd android
./gradlew clean
- |
# build Android
cd android
./gradlew assembleRelease --warning-mode all
artifacts:
- android/app/build/outputs/**/**/*.apk
publishing:
email:
recipients: