-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbitrise.yml
193 lines (190 loc) · 5.51 KB
/
bitrise.yml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: react-native
workflows:
deploy-android:
steps:
- slack@3.1.1:
inputs:
- api_token: "$SLACK_TOKEN"
- webhook_url: ''
- text: BarSearch App Android build triggered.
- channel_on_error: "#general"
- text_on_error: BarSearch App Android build failed :(
- pretext: ''
- channel: "#general"
- script@1.1.5:
title: Copy gradle.properties and keystore file
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
cp $GENERIC_FILE_STORAGE/gradle.properties ./android/gradle.properties
cp $GENERIC_FILE_STORAGE/my-release-key.keystore ./android/app/my-release-key.keystore
- install-missing-android-tools@2.3.3: {}
- set-android-manifest-versions@1.0.5:
inputs:
- version_name: '1.0'
- manifest_file: "$ANDROID_MANIFEST"
- android-build@0.9.5:
inputs:
- project_location: "$PROJECT_LOCATION"
- sign-apk@1.2.4: {}
- google-play-deploy@1.5.1:
inputs:
- package_name: "$ANDROID_PACKAGE_NAME"
- track: internal
- service_account_json_key_path: "$BITRISEIO_googlePlayAndroidDeveloperJson_URL"
- slack@3.1.1:
inputs:
- api_token: "$SLACK_TOKEN"
- webhook_url: ''
- text: BarSearch App Android build success!
- channel_on_error: "#general"
- text_on_error: BarSearch App Android failed :(
- channel: "#general"
deploy-ios:
steps:
- slack@3.1.1:
inputs:
- api_token: "$SLACK_TOKEN"
- webhook_url: ''
- text: BarSearch App iOS build triggered.
- channel_on_error: "#general"
- text_on_error: BarSearch App iOS build failed.
- pretext: ''
- pretext_on_error: ''
- channel: "#general"
- certificate-and-profile-installer@1.10.1: {}
- set-xcode-build-number@1.0.7:
inputs:
- build_short_version_string: 1.6.7
- build_version_offset: ''
- plist_path: "$INFO_PLIST"
- react-native-bundle@1.0.3:
inputs:
- dev: 'false'
- out: "$IOS_MAIN_JSBUNDLE"
- assetRoots: ios
- entry_file: index.js
- xcode-archive@2.4.17:
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- scheme: "$BITRISE_SCHEME"
- export_method: "$BITRISE_EXPORT_METHOD"
- xcodebuild_options: "-UseModernBuildSystem=NO"
- configuration: Release
- deploy-to-itunesconnect-application-loader@0.9.4:
inputs:
- password: "$APPLE_PASSWORD"
- app_password: "$APPLICATION_SPECIFIC_PASSWORD"
- itunescon_user: "$APPLE_ID"
- slack@3.1.1:
inputs:
- api_token: "$SLACK_TOKEN"
- webhook_url: ''
- text: BarSearch App iOS build success!
- channel_on_error: "#general"
- text_on_error: BarSearch iOS App build failed :(
- channel: "#general"
deploy-ios-android:
after_run:
- primary
- deploy-ios
- deploy-android
- secondary
primary:
steps:
- slack@3.1.1:
inputs:
- channel: "#general"
- text: Bar Search App build commencing...
- pretext: ''
- api_token: "$SLACK_TOKEN"
- activate-ssh-key@4.0.3:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4.0.13: {}
- cache-pull@2.0.1: {}
- generic-file-storage@0.9.0: {}
- script@1.1.5:
title: Get aws-exports.js file
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
git clone git@github.com:pjay79/BarsAppAmplify-aws.git
cd BarsAppAmplify-aws
mv aws-exports.js ../
cd ..
rm -rf BarsAppAmplify-aws
- script@1.1.5:
title: Get .env file
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
cp $GENERIC_FILE_STORAGE/.env .
- yarn@0.0.8: {}
- install-react-native@0.9.1:
inputs:
- version: 2.0.1
secondary:
steps:
- deploy-to-bitrise-io@1.3.18:
inputs:
- is_enable_public_page: 'false'
- cache-push@2.0.5: {}
- slack@3.1.1:
inputs:
- pretext: ''
- text: Bar Search App build completed.
- api_token: "$SLACK_TOKEN"
- channel: "#general"
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: android
- opts:
is_expand: false
MODULE: app
- opts:
is_expand: false
VARIANT: _
- opts:
is_expand: false
BITRISE_PROJECT_PATH: ios/BarsApp.xcodeproj
- opts:
is_expand: false
BITRISE_SCHEME: BarsApp
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: app-store
- opts:
is_expand: false
INFO_PLIST: ios/BarsApp/Info.plist
- opts:
is_expand: false
IOS_MAIN_JSBUNDLE: ios/BarsApp/main.jsbundle
- opts:
is_expand: false
GRADLEW_PATH: android/gradlew
- opts:
is_expand: false
ANDROID_MANIFEST: android/app/src/main/AndroidManifest.xml
- opts:
is_expand: false
ANDROID_PACKAGE_NAME: com.barsappamplify
- opts:
is_expand: false
ANDROID_APK_PATH: android/app/build/outputs/apk/release/app-release.apk