-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
47 lines (45 loc) · 5.48 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
# Automatically generated on 2021-02-21 UTC from https://codemagic.io/app/60307e99f39fee285c647b4d/settings
# Note that this configuration is not an exact match to UI settings. Review and adjust as necessary.
workflows:
default-workflow:
name: codemagic.yaml default workflow
max_build_duration: 60
environment:
vars:
APP_STORE_CONNECT_ISSUER_ID: 7f420207-5295-43ea-a262-655e83fb5716
APP_STORE_CONNECT_KEY_IDENTIFIER: 2X373FDJ7A
APP_STORE_CONNECT_PRIVATE_KEY: Encrypted(Z0FBQUFBQmdNZk1IZkdzR1pFVVZOTmJKLXdUOG9IemJfWXRNWmd1QXpleDBNdjVoVExkWF9SRkpMLTBPX1hOWUhwZ0xseHBHZzNQMHRib0xrNVZubjVVUVE5RWFRSkhSQ3cwZkJ1STVoR1dKMmxuWUNuczVqSFd4emdpTnlPa0E1SEtYYjJhUzZSOUtwTlVZa2tydHFram9URXJTcGczX3phTXFONW1RU3huY2Q4YzFuLXZ0dzhReHlIcDU4dDF4LTlWMl9QRU9Odm1EQlhlZUdkeFdTMmJiMGJuRkhERVR3ZUlMMlFhM1hHSG14U3VGTHU5bEZwb01DaEg1V0JiX0x6ZGZkQUF0RkwyUzNhRkhBV3RCTGR1VVZDT0pvTGJ2TlVHN2pPcWZTb2YtNnNYZlR5UU9Vc0FGS0NfRmdyVEF2UjRTUUNTNkItcWphT1VPcS16WnF3dmRiMFVObFA3ZzViT0hwVzRDNjY2QjlUZDRyNWJEMFdmSGNuZHJJSWlNZEZrWkJFSkdiTmw0UEdrb1d2MTV3V01WaXhXRVc2WkxwZmFLUTJFdjg1ZkNURThUR1NuemkxND0=)
CERTIFICATE_PRIVATE_KEY: Encrypted(Z0FBQUFBQmdNZk1Id1V1THM3Q1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VQ09FTUZTeVBVZC1IWEFvOG5GVm5yaF84S0Y0XzBPLUZEY3NDbGYtT3VtLVhHb3BMTF9BTGhvOThNdGRVSlFkU0FtZmxYMWhuMWdHUXRzVUxBcUt4bDJITlpoWmozSi0tMTBNeUphMTEyWmpWZ0cxMDBreHN1LVRWVVQwVHBZVVZJMDFyZXRTYjVpc2t0bkZ4YUR6cUFKV0lxUFE4OUJrLW1yUFdJOTU2TzB4ODZpMlFZN0VWTEo5ZUt0bTZmdnVmT2NpeDRROC1DR19mRGRzbnVReEhTOTYwMDRKN1BKeHpYU2pKMmlxMW5lTFRxb0F0S0ROeDhzSzJpbUZXTmJ4c1l1TDhZR3VYUFJPQjdIN2VBa1RlejJCTXVENkwyWHoyQ09BRjB6STEyVTFQeHdWamJsZ0g1dWhDMmNKRGRaZ2pZdThHRnJkMDZBNnhQcERTVG5uUW9kTzRqTkJXd21naXZtYmZyOHJDOU5DZVdwQ1pHQUhCd01HVXlnaV94Q3B3WU9XVlNhRjJOR2lYSGJSNXpwNTYtUVRWSXdKVF92QUl2MnVnenlXNS1rUDlkcXp3SUdZMkpOTEVSQXZpXzduajM2QnpndXNpX0Y1WURudjgwWGc2T0h4TnNoenBpQmJsSUJaQnlwZEZTNWNuMmdDTGdsMk5wdkNLYjRpenFGWUZjd2lleEJkaWE3ckVoTjRiU0pMU3VsWFhYWkllZnc3NVJiajFwV2I3UFpGbWVRU1pId243R1lRbWtSTXlyUnJFT0ZGWHdybzRiYndhTlVnQWFFQTY3LTRTeTZDWnpIOEgzWTRkdDRhMzFOb3NUUzhNcGoyUE9PekxkNUpjSS1jOV9OVFZKYklZMzFjTS14SldYbDA1a2xVN1U1dFNNa1FzZ1pzZzNPbVFJd1RLUEdwUWFpLXpDMHBnWGp2cXNtLUdwYVVLT1FXUnJsMzRu)
flutter: stable
xcode: latest
cocoapods: default
triggering:
events:
- push
branch_patterns:
- pattern: '*codemagic*'
include: true
source: true
scripts:
- cd . && flutter packages pub get
- find . -name "Podfile" -execdir pod install \;
- keychain initialize
- app-store-connect fetch-signing-files "$(xcode-project detect-bundle-id)"
--type IOS_APP_STORE --create
- keychain add-certificates
- |
export LATEST_BUILD_NUMBER=$(app-store-connect get-latest-testflight-build-number '1554712302') # The argument is your application's Apple ID
cd ios && agvtool new-version -all $(($LATEST_BUILD_NUMBER + 1))
- cd . && flutter build ios --release --build-name=1.0.0 --build-number=$NEXT_BUILD_NUMBER
--no-codesign
- xcode-project use-profiles
- cd . && xcode-project build-ipa --workspace "ios/Runner.xcworkspace" --scheme
"Runner"
artifacts:
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- flutter_drive.log
publishing:
app_store_connect:
apple_id: [email protected]
password: Encrypted(Z0FBQUFBQmdNZk1ITmtydE9TRGQ0STlfVjdsaXBJQ3VBN2VQeWZSczBJREV0Ujc2LWx4bTI1WHR4QzlXal84UGRfNF9JNGUyd3BrcUp5dzdtOHFQS2tpTEtwamk5ZDZBQWhwSG9wN0tpTFVBT2NVZ190YnNrc2M9)