-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodemagic.yaml
58 lines (58 loc) · 2.06 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
workflows:
ipa-publish:
environment:
groups:
- production
- app_store_credentials
- certificate_credentials
vars:
BUNDLE_ID: "org.nhsrc.FacilitiesAssessment"
APP_STORE_APP_ID: 1354891968 # <-- Put the app id number here. This is found in App Store Connect > App > General > App Information
node: 14.17.0
xcode: 13.3.1
cocoapods: default
scripts:
- name: Set up keychain to be used for codesigning using Codemagic CLI 'keychain' command
script: |
keychain initialize
- name: Fetch signing files
script: |
app-store-connect fetch-signing-files "$BUNDLE_ID" --type IOS_APP_STORE --create
- name: Use system default keychain
script: |
keychain add-certificates
- name: Increment build number
script: |
#!/bin/sh
set -e
set -x
cd $FCI_BUILD_DIR/ios
agvtool new-version -all $(($(app-store-connect get-latest-testflight-build-number "$APP_STORE_APP_ID") + 1))
- name: Install npm dependencies
script: |
npm install
- name: Configure for release
script: make create-nhsrc-config replace-syntax-errors
- name: Set up code signing settings on Xcode project
script: |
xcode-project use-profiles --warn-only
- name: Build ipa for distribution
script: |
xcode-project build-ipa --project "$FCI_BUILD_DIR/ios/FacilitiesAssessment.xcodeproj" --scheme "FacilitiesAssessment"
artifacts:
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
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:
- Gunak Testers
env-test-workflow:
environment:
xcode: 14.17.0
scripts:
- name: Check xcode schemes
script: xcodebuild -list -project "$FCI_BUILD_DIR/ios/FacilitiesAssessment.xcodeproj"