-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
67 lines (66 loc) · 2.26 KB
/
Copy pathcodemagic.yaml
File metadata and controls
67 lines (66 loc) · 2.26 KB
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
workflows:
ios-workflow:
name: iOS Workflow
max_build_duration: 120
integrations:
app_store_connect: Codemagic
environment:
groups:
- ios_credentials
- appstore_credentials
ios_signing:
provisioning_profiles:
- Syringe_App
certificates:
- iOS_Distribution_Certificate
scripts:
- name: Install npm dependencies and update Cordova version
script: |
npm install
npm install -g cordova
- name: Setup Cordova iOS platform
script: |
cordova platform remove ios --nosave
cordova platform add ios \
--confirm \
--no-interactive \
--noresources \
--save
- name: Set up code signing settings on Xcode project
script: |
xcode-project use-profiles --project platforms/ios/CordovaSyringePumpApp.xcodeproj
- name: Build ipa for distribution
script: |
cat /Users/builder/export_options.plist
package_type=$(defaults read /Users/builder/export_options.plist method)
identity=$(defaults read /Users/builder/export_options.plist signingCertificate)
team=$(defaults read /Users/builder/export_options.plist teamID)
profile=$(find '/Users/builder/Library/MobileDevice/Provisioning Profiles' -name "*.mobileprovision")
profile_uuid=$(grep UUID -A1 -a "$profile" | grep -io "[-A-F0-9]\{36\}")
cat > build.json <<EOF
{
"ios": {
"release": {
"codeSignIdentity": "$identity",
"developmentTeam": "$team",
"packageType": "$package_type",
"provisioningProfile": "$profile_uuid"
}
}
}
EOF
cordova build ios --release --device --buildConfig='build.json'
artifacts:
- /Users/builder/clone/platforms/ios/build/Release-iphoneos/CordovaSyringePumpApp.ipa
- /tmp/xcodebuild_logs/*.log
publishing:
email:
recipients:
- user_1@example.com
- user_2@example.com
notify:
success: true
failure: false
app_store_connect:
auth: integration
submit_to_testflight: true