-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
38 lines (36 loc) · 1.39 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
workflows:
my-workflow:
scripts:
- name: Add provisioning profiles
script: |
set -e # exit on first failed command
PROFILES_HOME="$HOME/Library/MobileDevice/Provisioning Profiles"
mkdir -p "$PROFILES_HOME"
echo ${PROVISIONING_PROFILE?} | base64 --decode > "$PROFILES_HOME/$(uuidgen).mobileprovision"
- name: Add signing certificate
script: |
set -e # exit on first failed command
echo ${CERTIFICATE?} | base64 --decode > /tmp/certificate.p12
keychain initialize
keychain add-certificates \
--certificate /tmp/certificate.p12 \
--certificate-password ${CERTIFICATE_PASSWORD?}
- name: Increment build number
script: agvtool new-version -all $BUILD_NUMBER
- name: Set up code signing settings on Xcode project
script: xcode-project use-profiles
- name: Build ipa for distribution
script: xcode-project build-ipa \
--workspace "${XCODE_WORKSPACE?}" \
--scheme "${XCODE_SCHEME?}"
artifacts:
- build/ios/ipa/*.ipa
my-workflow2:
publishing:
app_store_connect:
api_key: $APP_STORE_CONNECT_PRIVATE_KEY
key_id: $APP_STORE_CONNECT_KEY_IDENTIFIER
issuer_id: $APP_STORE_CONNECT_ISSUER_ID
submit_to_testflight: true
beta_groups:
- Beta Testers