-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
131 lines (123 loc) · 4.37 KB
/
codemagic.yaml
File metadata and controls
131 lines (123 loc) · 4.37 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
workflows:
# android-workflow:
# name: Ionic Capacitor Android Workflow
# max_build_duration: 120
# environment:
# android_signing:
# - keystore_reference
# groups:
# - google_play
# vars:
# PACKAGE_NAME: "fr.mylow.maisonisenapp"
# GOOGLE_PLAY_TRACK: alpha
# node: latest
# scripts:
# - name: Install npm dependencies for Ionic Capacitor project
# script: |
# npm install
# - name: Build app
# script: |
# npm run build
# - name: Set up local.properties
# script: |
# echo "sdk.dir=$ANDROID_SDK_ROOT" > "$CM_BUILD_DIR/android/local.properties"
# - name: Update dependencies and copy web assets to native project
# script: |
# # if you don't need to update native dependencies, use this:
# # npx cap copy
# #
# # to update native dependencies, use this command:
# npx cap sync
# - name: Build Android release
# script: |
# LATEST_GOOGLE_PLAY_BUILD_NUMBER=$(google-play get-latest-build-number --package-name "$PACKAGE_NAME")
# if [ -z $LATEST_GOOGLE_PLAY_BUILD_NUMBER ]; then
# # fallback in case no build number was found from Google Play.
# # Alternatively, you can `exit 1` to fail the build
# # BUILD_NUMBER is a Codemagic built-in variable tracking the number
# # of times this workflow has been built
# UPDATED_BUILD_NUMBER=$BUILD_NUMBER
# else
# UPDATED_BUILD_NUMBER=$(($LATEST_GOOGLE_PLAY_BUILD_NUMBER + 1))
# fi
# cd android
# ./gradlew bundleRelease \
# -PversionCode=$UPDATED_BUILD_NUMBER \
# -PversionName=1.0.$UPDATED_BUILD_NUMBER
# artifacts:
# - android/app/build/outputs/**/*.apk
# publishing:
# email:
# recipients:
# - user_1@example.com
# - user_2@example.com
# notify:
# success: true
# failure: false
# google_play:
# credentials: $GCLOUD_SERVICE_ACCOUNT_CREDENTIALS
# track: internal
# submit_as_draft: true
ios-workflow:
name: iOS Workflow
max_build_duration: 120
integrations:
app_store_connect: Milo
environment:
ios_signing:
distribution_type: app_store
bundle_identifier: fr.mylow.maisonisen
vars:
BUNDLE_ID: "fr.mylow.maisonisen"
APP_ID: 6504090590
XCODE_WORKSPACE: "App.xcworkspace"
XCODE_SCHEME: "App"
xcode: 15.1
cocoapods: default
scripts:
- name: Install npm dependencies for Ionic Capacitor project
script: |
npm install
- name : build web assets
script: |
npm run build
- name : add assets
script: |
npx @capacitor/assets generate --ios
- name: Cocoapods installation
script: |
cd ios/App && pod install
- name: Update dependencies and copy web assets to native project
script: |
# if you don't need to update native dependencies, use this:
# npx cap copy
#
# to update native dependencies, use this command:
npx cap sync
- name: Set up code signing settings on Xcode project
script: |
xcode-project use-profiles
- name: Increment build number
script: |
cd $CM_BUILD_DIR/ios/App
LATEST_BUILD_NUMBER=$(app-store-connect get-latest-app-store-build-number "$APP_ID")
agvtool new-version -all $(($LATEST_BUILD_NUMBER + 1))
- name: Build ipa for distribution
script: |
cd $CM_BUILD_DIR/ios/App
xcode-project build-ipa \
--workspace "$XCODE_WORKSPACE" \
--scheme "$XCODE_SCHEME"
artifacts:
- ios/App/build/ios/ipa/*.ipa
publishing:
app_store_connect:
auth: integration
# Configuration related to TestFlight (optional)
# Note: This action is performed during post-processing.
submit_to_testflight: true
beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
- Yessie
# Configuration related to App Store (optional)
# Note: This action is performed during post-processing.
submit_to_app_store: false