-
Notifications
You must be signed in to change notification settings - Fork 74
/
bitrise.yml
184 lines (179 loc) · 5.82 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
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: react-native
workflows:
fotos_Android_Build:
description: |
Installs dependencies.
Next steps:
- Add tests to your project and configure the workflow to run them.
- Check out [Getting started with Expo apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-expo-apps.html).
steps:
- activate-ssh-key@4: {}
- [email protected]: {}
- script@1:
title: Install node-gyp globally
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
yarn global add node-gyp
- yarn@0:
inputs:
- command: install
- set-java-version@1:
inputs:
- set_java_version: '17'
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
#set -e
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit #successfully
#set -o pipefail
# debug log
set -x
# write your script here
sdkmanager --install "cmake;3.10.2.4988404"
yes | sdkmanager --licenses
title: Install CMake
- get-npm-package-version@1:
inputs:
- package_json_path: "$BITRISE_SOURCE_DIR/package.json"
- change-android-versioncode-and-versionname@1:
inputs:
- new_version_name: "$NPM_PACKAGE_VERSION"
- build_gradle_path: "$BITRISE_SOURCE_DIR/android/app/build.gradle"
- android-build@1:
inputs:
- variant: release
- module: app
- project_location: "$BITRISE_SOURCE_DIR/android"
- sign-apk@1:
inputs:
- use_apk_signer: 'true'
- [email protected]: {}
fotos_Android_Deploy:
description: |
Installs dependencies.
Next steps:
- Add tests to your project and configure the workflow to run them.
- Check out [Getting started with Expo apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-expo-apps.html).
steps:
- activate-ssh-key@4: {}
- [email protected]: {}
- script@1:
title: Install node-gyp globally
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
yarn global add node-gyp
- yarn@0:
inputs:
- command: install
- set-java-version@1:
inputs:
- set_java_version: '17'
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
#set -e
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit #successfully
#set -o pipefail
# debug log
set -x
# write your script here
sdkmanager --install "cmake;3.10.2.4988404"
yes | sdkmanager --licenses
title: Install CMake
- get-npm-package-version@1:
inputs:
- package_json_path: "$BITRISE_SOURCE_DIR/package.json"
- change-android-versioncode-and-versionname@1:
inputs:
- new_version_name: "$NPM_PACKAGE_VERSION"
- version_code_offset: '63'
- build_gradle_path: "$BITRISE_SOURCE_DIR/android/app/build.gradle"
- android-build@1:
inputs:
- variant: release
- module: app
- build_type: aab
- project_location: "$BITRISE_SOURCE_DIR/android"
- sign-apk@1:
inputs:
- use_apk_signer: 'true'
- deploy-to-bitrise-io@2: {}
inputs:
- package_name: land.fx.fotos
- track: production
- service_account_json_key_path: "$BITRISEIO_GooglePlay_API_JSON_URL"
fotos_IOS_Deploy:
description: |
Installs dependencies.
Next steps:
- Add tests to your project and configure the workflow to run them.
- Check out [Getting started with Expo apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-expo-apps.html).
steps:
- script@1:
inputs:
- content: |2-
- script:
title: Activate correct Ruby version
inputs:
- content: |-
#!/bin/bash
set -ex
RUBY_VERSION=3.1.4
asdf install ruby $RUBY_VERSION
asdf global ruby $RUBY_VERSION
- activate-ssh-key@4: {}
- git-clone@6: {}
- nvm@1:
inputs:
- node_version: '16'
- yarn@0:
inputs:
- command: install
- cocoapods-install@2:
inputs:
- podfile_path: "$BITRISE_SOURCE_DIR/ios/Podfile"
- source_root_path: "$BITRISE_SOURCE_DIR/ios/"
- get-npm-package-version@1:
inputs:
- package_json_path: "$BITRISE_SOURCE_DIR/package.json"
- set-xcode-build-number@1:
inputs:
- build_short_version_string: "$NPM_PACKAGE_VERSION"
- plist_path: "$BITRISE_SOURCE_DIR/ios/fotos/info.plist"
inputs:
- scheme: fotos
- project_path: "$BITRISE_SOURCE_DIR/ios/fotos.xcworkspace"
- configuration: Release
- upload_bitcode: 'no'
- compile_bitcode: 'no'
- automatic_code_signing: api-key
- export_development_team: 656TD8GM9B
- distribution_method: app-store
- deploy-to-bitrise-io@2: {}
inputs:
- app_id: '1640008383'
- team_name: 656TD8GM9B
- bundle_id: land.fx.fotos
meta:
bitrise.io:
stack: osx-xcode-14.3.x-ventura
machine_type_id: g2-m1.4core
app:
envs:
- opts:
is_expand: false
PLATFORM: android