-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodemagic.yaml
37 lines (37 loc) · 6.78 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
workflows:
release-workflow:
name: Publish to Google Play
max_build_duration: 60
environment:
groups:
- google-play
vars:
CM_KEYSTORE: Encrypted(Z0FBQUFBQmcwSUhuRzZ6RjFoU0ZrTFZ6S1QzWmEyZlNPTExYVnQzMzh0dVp5Y18tRk9zYS1hZl9mZmJuSWFLcmtoNWQ3MUpnQ3gxS2Yta0N5ZnRzRjYtSjl1bUkxZFVEZ0lPMXFwZHdtRm9QeW9vNlFxeU1xcTNpc1NjSWFxVlBLbGRKZzNwUy1VQll1djRITFdfWXJGQXpsanQyemhnNUFSLXNRZV8wTDFzVEVKbkJmbXV3cGxpd0ZPdUtaNUk2b0Vjb2kyLWpYN1NZdVdIV21IV3Y5Q2V0SEVpVXowSEg0Rmo0WmRJd3ZucDlFVE9zak9YWWI2YTVhek8xRE13dGktc3pUNndRZlAyWkJZNUlBUkpWc2hIOHFwVzBmdUVuamR5UXd3NmlvUXhsM0FSaHJJMG5uaUdHNmJrQll6eEF5RzFYZGctOHp2Wk5XbkRXNm5SYzdEY1ZpU1hTRllhQ3VHZTBpWkRvdlo1c1Y5RDEtYl95bnU4bzItbXljQXJiTFlmVTNIbGo1QlJTcXUzUjY5cGpiaERxTTVUc3ktdnp0RTZsR1ZxRGwwdzdJdDhMaGlwQVBCbkYyMXJkUzZCYUVFWm90V2NzRzk2Rm93VTdYLXMxRWl1QjdZZ3poWmNNQ2xCelJpMGYta3R6anl2c2FPdkNsRzVkTXRLT2IxbTYyclZpcC0zWGtENDlPTW1QNlhQM0VteFFuSTMzWUI2RWVyU0sxTWpNcE0xZGdua3BhSmZPcmw5NEZ3VUZsYktLZE5UbjM4aVk4Nm8wNExkeXNvZzNSa3hZbVF2OHMtVkZuQVpUTWlF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3Q3STNiQVNrMDZIRlUwZG1vZlUzQWVaTTFGWXlnOUZCOW9QRTBpWWVxYXJKMVNBYllVOUNXR29WaE1JVXFGWlZqclF1bDVDZXlrVTNITHFrN3J4TGU5Yzg4ZGhPRFA4Y1dzdjgtb0EwVmNUUThLRU1DZDBYMkVNR1VLTERaV212V1hfNVR4MnFOWEZobjczaTJNM0Nla0p1UzBfUTRsdUwyVE51X3VLVHROMGVMa0JxMkdiZE05YzJiVlMxTGJZZ0FOTGpwX1ltZk1IdGxsZ1B2NVVMQ1djbjR2R3F6Z0JUWlV6cmhEMVVNMVBYYmItQWJJaW5LaGVKcFY1cE5QSDlqVF9pUGdqRXRNTUx2V3NWUl9IZlVHd3FCUlFvblFkWnByQXZybHZBeXpnaF8zWlpBcTN1VXBMZTUtMTFha3ZVcFNZbjE4dmEteFRJb3A3Q0M2c3EwempWOERISHdCWkY5QW1MV3J0Z0JESnM9)
CM_KEYSTORE_PASSWORD: Encrypted(Z0FBQUFBQmcwSUhMSzRicGJNRDJlT1FrREVEUWNMck9DRXFpY1hQVVJOVWl5QldWN05YUzRtWTdTNWVCOHNrTExSVVRoVlVyTkhXRGRXT1NfVnF5TzAzcVVUams3cjZvWlE9PQ==)
CM_KEY_ALIAS_USERNAME: TurskyiApps
CM_KEY_ALIAS_PASSWORD: Encrypted(Z0FBQUFBQmcwSUl4Y3ZoUEthUFltYlV4SW5pTHcxalBCbDZkLS1PZGNhM3A2TFlBUG5PTk9la1RtR3JhclRaYjVKSVpOaUdNZHd2d2NhZXJiT1lzOWtjZmtQVGFkbGpKOWc9PQ==)
JAVA_HOME: /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home # Path to Java 17
triggering:
events:
- push
branch_patterns:
- pattern: master
include: true
source: true
scripts:
- |
# set up release keystore
echo $CM_KEYSTORE | base64 --decode > /tmp/keystore
cat >> "$FCI_BUILD_DIR/key.properties" <<EOF
storePassword=$CM_KEYSTORE_PASSWORD
keyPassword=$CM_KEY_ALIAS_PASSWORD
keyAlias=$CM_KEY_ALIAS_USERNAME
storeFile=/tmp/keystore
EOF
./gradlew bundleRelease
artifacts:
- presentation/build/outputs/bundle/release/presentation-release.aab
publishing:
google_play:
credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
track: production