-
Notifications
You must be signed in to change notification settings - Fork 22
206 lines (203 loc) · 8.3 KB
/
release-mobile-app.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
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
194
195
196
197
198
199
200
201
202
203
204
205
206
name: Mobile fastlane release workflow
on:
push:
tags:
- mobile/v*.*.*
workflow_dispatch:
jobs:
release-android-mobile:
name: release-android-mobile
runs-on: macos-13 #orai-self-hosted
timeout-minutes: 120 # Set the timeout to 120 minutes
strategy:
matrix:
node-version: [20.17.0]
steps:
- name: Check tag name
if: contains(github.ref, 'cp')
run: |
exit 1
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Increase Node.js memory limit to 7GB
run: |
export NODE_OPTIONS="--max-old-space-size=7168"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Checkout submodule repo
uses: actions/checkout@v3
- name: Install dependencies # install project deps with --frozen-lockfile to make sure we will have the same packages version ( very recommended on running yarn install on ci)
run: yarn install --frozen-lockfile
- name: Install mobile packages
working-directory: apps/mobile
run: yarn --silent
- name: Build mobile images
working-directory: apps/mobile
run: yarn images
- name: restore lerna
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Build Libs
run: yarn build:libs
# - name: Build provider
# working-directory: apps/mobile
# run: yarn build:provider
- name: Bundle mobile
working-directory: apps/mobile
run: yarn build:ios
env:
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
API_KEY_ETH_SCAN: ${{ secrets.API_KEY_ETH_SCAN }}
API_KEY_BSC_SCAN: ${{ secrets.API_KEY_BSC_SCAN }}
API_KEY: ${{ secrets.API_KEY_FIREBASE }}
SENDER_ID: ${{ secrets.SENDER_ID_FIREBASE }}
APP_ID: ${{ secrets.APP_ID_FIREBASE }}
API_KEY_KADO: ${{ secrets.API_KEY_KADO }}
MIX_PANEL_TOKEN: ${{ secrets.MIX_PANEL_TOKEN }}
BYTE_BREW_SDK_KEY_IOS: ${{ secrets.BYTE_BREW_SDK_KEY_IOS }}
BYTE_BREW_ID_IOS: ${{ secrets.BYTE_BREW_ID_IOS }}
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Pod install
working-directory: apps/mobile
run: yarn pod:install
- name: Setup Fastlane ios
working-directory: apps/mobile/ios/fastlane
run: cd .. && bundle update && fastlane release
env:
DISCORD_HOOK_ID: ${{ secrets.DISCORD_MOBILE_WEBHOOK_ID }}
DISCORD_HOOK_TOKEN: ${{ secrets.DISCORD_MOBILE_WEBHOOK_TOKEN }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_DURATION: 1200
APP_STORE_CONNECT_API_KEY_IN_HOUSE: false
APP_IDENTIFIER: io.orai.owallet
APPLE_ID: ${{ secrets.APPLE_ID }}
ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }}
TEAM_ID: ${{ secrets.TEAM_ID }}
MATCH_GIT_URL: "https://github.com/oraichain/fastlane.git"
KEYCHAIN_PASSWORD: ${{ secrets.PASS_KEY_STORE }}
MATCH_PASSWORD: ${{ secrets.PASS_KEY_STORE }}
KEYCHAIN_NAME: "login"
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
FILE_PATH: "/OWalletKeystore"
release-ios-mobile:
name: release-ios-mobile
runs-on: macos-13 #orai-self-hosted
timeout-minutes: 120 # Set the timeout to 120 minutes
strategy:
matrix:
node-version: [20.17.0]
steps:
- name: Check tag name
if: contains(github.ref, 'cp')
run: |
exit 1
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.8.0
with:
access_token: ${{ github.token }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Increase Node.js memory limit to 7GB
run: |
export NODE_OPTIONS="--max-old-space-size=7168"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Checkout submodule repo
uses: actions/checkout@v3
- name: Install dependencies # install project deps with --frozen-lockfile to make sure we will have the same packages version ( very recommended on running yarn install on ci)
run: yarn install --frozen-lockfile
- name: Install mobile packages
working-directory: apps/mobile
run: yarn --silent
- name: Build mobile images
working-directory: apps/mobile
run: yarn images
- name: restore lerna
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Build Libs
run: yarn build:libs
# - name: Build provider
# working-directory: apps/mobile
# run: yarn build:provider
- name: Bundle mobile
working-directory: apps/mobile
run: yarn build:ios
env:
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
API_KEY_ETH_SCAN: ${{ secrets.API_KEY_ETH_SCAN }}
API_KEY_BSC_SCAN: ${{ secrets.API_KEY_BSC_SCAN }}
API_KEY: ${{ secrets.API_KEY_FIREBASE }}
SENDER_ID: ${{ secrets.SENDER_ID_FIREBASE }}
APP_ID: ${{ secrets.APP_ID_FIREBASE }}
API_KEY_KADO: ${{ secrets.API_KEY_KADO }}
MIX_PANEL_TOKEN: ${{ secrets.MIX_PANEL_TOKEN }}
BYTE_BREW_SDK_KEY_IOS: ${{ secrets.BYTE_BREW_SDK_KEY_IOS }}
BYTE_BREW_ID_IOS: ${{ secrets.BYTE_BREW_ID_IOS }}
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Pod install
working-directory: apps/mobile
run: yarn pod:install
- name: Setup Fastlane ios
working-directory: apps/mobile/ios/fastlane
run: cd .. && bundle update && fastlane release
env:
DISCORD_HOOK_ID: ${{ secrets.DISCORD_MOBILE_WEBHOOK_ID }}
DISCORD_HOOK_TOKEN: ${{ secrets.DISCORD_MOBILE_WEBHOOK_TOKEN }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_DURATION: 1200
APP_STORE_CONNECT_API_KEY_IN_HOUSE: false
APP_IDENTIFIER: io.orai.owallet
APPLE_ID: ${{ secrets.APPLE_ID }}
ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }}
TEAM_ID: ${{ secrets.TEAM_ID }}
MATCH_GIT_URL: "https://github.com/oraichain/fastlane.git"
KEYCHAIN_PASSWORD: ${{ secrets.PASS_KEY_STORE }}
MATCH_PASSWORD: ${{ secrets.PASS_KEY_STORE }}
KEYCHAIN_NAME: "login"
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
SENTRY_TOKEN: ${{ secrets.SENTRY_TOKEN }}
MIX_PANEL_TOKEN: ${{ secrets.MIX_PANEL_TOKEN }}