-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
69 lines (69 loc) · 7.57 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
59
60
61
62
63
64
65
66
67
68
69
workflows:
ios-workflow:
name: iOS Workflow
environment:
vars:
XCODE_PROJECT: "Perp.xcodeproj" # <-- Put the name of your workspace here.
XCODE_SCHEME: "Perp" # <-- Put the name of your scheme here.
BUNDLE_ID: "com.beauth.perpetual" # <-- Put your Bundle Id here.
# https://docs.codemagic.io/code-signing-yaml/signing-ios/
APP_STORE_CONNECT_ISSUER_ID: Encrypted(Z0FBQUFBQmhNS2pUaFh3dUpDUWV0anJRNkwwNUE5SzAwemFlaHBJNThHSmlmTTNFNkVFNU5VcGpQMEJucnhIZTFXaW1Bd0FXSllVYkNkVlpmNUFiZ0JFWjNETmZTd2VmQ1FjUGpyVkJmeHdxY2VlT2RweFlQbzg3eWpELUhNT01fd3ZjNmotdjRxZzc=) # <-- Put your encrypted App Store Connect Issuer Id here
APP_STORE_CONNECT_KEY_IDENTIFIER: Encrypted(Z0FBQUFBQmhNS2t5Y2hSRVlkem4wZmlwY3J6SFVjYmVTMGd2M3RpMExtUmVQdkhQM3FWblp2TWQ1U2ZqSU5USDlqamN3cXdYeTBhT01BRV9UU0NXNE1sT1AwejBxVlJRZEE9PQ==) # <-- Put your encrypted App Store Connect Key Identifier here
APP_STORE_CONNECT_PRIVATE_KEY: Encrypted(Z0FBQUFBQmhNS21UWjY0MHBxYjVSWUZSeUNrdFU4WG10RElVb0ZIajU0aG55T2J0bVlZX1JOOGhFckxnMmhtX0JPXzhwa2Z5QUpDU0RhOGpheWtJR0NBTTczTmFPaXFTdWFUcTg2VVhrZjdqQWNaTVdLN19kbnkzNHBXUkhFOUVjczBSZmZmT1hjQWNtRmdRRy1ELVQ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eENRVE84UlpRYnVQekw3bGJPYVZueDRUVUFfeTZ3ZGhUR1BPOUpUbzRlWW1IOXphV192OGFRVHdsUFBlVTZtUndhT3lMdTFxbVdmaUYycEhPdk1ncWk3WTBKb21pOWRxR3BOSkxSNEpXVVNGWjlmQmI5UTNYMlJwMW5SelpUOW81V2wtVmJCdERxblMycUxkbVBlcnluRlBYWjJyY3BxTkZNWTBhQXgyYmhXWmw2WWhVSnJMc0FZRTZQcl9qeXhMOVRGRllKQjB3MFRfTWJsbjcwSmYyUWhSWnBGTWlaekRYQ0xaRWlES0FhcXdlamRFZk5LaDZ4LVVmV21KbDAyejFPN3JIWm83ejFOYVcyWlQ2Y1BN) # <-- Put your encrypted Certificate Private Key here
APP_STORE_APP_ID: 1583770606 # <-- Put the app id number here. This is found in App Store Connect > App > General > App Information
xcode: latest
triggering:
events:
- push
# - tag
# - pull_request
branch_patterns:
- pattern: 'dev'
include: true
source: true
- pattern: 'main'
include: true
source: true
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 --verbose
- name: Use system default keychain
script: |
keychain add-certificates
- name: Set up code signing settings on Xcode project
script: |
xcode-project use-profiles
- name: Increment build number
script: |
#!/bin/sh
set -e
set -x
cd $FCI_BUILD_DIR
# agvtool new-version -all $(($BUILD_NUMBER + 1))
agvtool new-version -all $(($(app-store-connect get-latest-testflight-build-number "$APP_STORE_APP_ID") + 1))
- name: Build ipa for distribution
script: |
xcode-project build-ipa --project "$XCODE_PROJECT" --scheme "$XCODE_SCHEME" --verbose
artifacts:
- build/ios/ipa/*.ipa
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
app_store_connect: # https://docs.codemagic.io/publishing-yaml/distribution
api_key: $APP_STORE_CONNECT_PRIVATE_KEY # Contents of the API key, can also reference environment variable such as $APP_STORE_CONNECT_PRIVATE_KEY
key_id: $APP_STORE_CONNECT_KEY_IDENTIFIER # Alphanumeric value that identifies the API key, can also reference environment variable such as $APP_STORE_CONNECT_KEY_IDENTIFIER
issuer_id: $APP_STORE_CONNECT_ISSUER_ID # Alphanumeric value that identifies who created the API key, can also reference environment variable such as $APP_STORE_CONNECT_ISSUER_ID
submit_to_testflight: true # Optional boolean, defaults to false. Whether or not to submit the uploaded build to TestFlight beta review. Required for distributing to beta groups. Note: This action is performed during post-processing.
beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
- public
- insider
email:
recipients:
- spapinwar@gmail.com
notify:
success: true
failure: true