-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
41 lines (38 loc) · 1.15 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
workflows:
ios-native-workflow:
name: iOS Native Build Workflow
environment:
vars:
APP_STORE_CONNECT_API_KEY: Encrypted(...)
APP_STORE_CONNECT_ISSUER_ID: Encrypted(...)
APP_STORE_CONNECT_KEY_ID: Encrypted(...)
xcode: latest
triggering:
events:
- push
- pull_request
scripts:
- name: Install Dependencies
script: |
cd ios
pod install
- name: Build iOS App
script: |
xcodebuild -workspace YourApp.xcworkspace \
-scheme YourAppScheme \
-sdk iphoneos \
-configuration Release \
-archivePath $CI_WORKSPACE/build/YourApp.xcarchive archive
- name: Export iOS .ipa
script: |
xcodebuild -exportArchive \
-archivePath $CI_WORKSPACE/build/YourApp.xcarchive \
-exportOptionsPlist ExportOptions.plist \
-exportPath $CI_WORKSPACE/build
artifacts:
- $CI_WORKSPACE/build/*.ipa
publishing:
app_store_connect:
api_key: $APP_STORE_CONNECT_API_KEY
issuer_id: $APP_STORE_CONNECT_ISSUER_ID
key_id: $APP_STORE_CONNECT_KEY_ID