@@ -195,6 +195,50 @@ jobs:
195
195
upload-from : ./android/app/build/outputs/apk/debug/
196
196
upload-to : /capture-lite/apk/debug/
197
197
198
+ upload-google-drive-dev :
199
+ runs-on : ubuntu-latest
200
+ steps :
201
+ - uses : actions/checkout@v2
202
+
203
+ - uses : actions/setup-node@v2
204
+ with :
205
+ node-version : ' 16'
206
+
207
+ - name : Check if version has been updated
208
+ id : version_check
209
+ uses : EndBug/version-check@v2
210
+ with :
211
+ diff-search : true
212
+ token : ${{ secrets.GITHUB_TOKEN }}
213
+
214
+ - name : Build Ionic
215
+ if : steps.version_check.outputs.changed == 'true'
216
+ env :
217
+ NUMBERS_STORAGE_BASE_URL : ${{ secrets.NUMBERS_STORAGE_DEV_BASE_URL }}
218
+ NUMBERS_STORAGE_TRUSTED_CLIENT_KEY : ${{ secrets.NUMBERS_STORAGE_TRUSTED_CLIENT_KEY }}
219
+ NUMBERS_BUBBLE_DB_URL : ${{ secrets.NUMBERS_BUBBLE_DB_QA_URL }}
220
+ run : |
221
+ npm install -g @ionic/cli
222
+ npm install
223
+ npm run build
224
+
225
+ - name : Build APKs
226
+ if : steps.version_check.outputs.changed == 'true'
227
+ run : |
228
+ npx cap sync android
229
+ cd android/
230
+ ./gradlew assembleDebug
231
+
232
+ - name : Upload dev site build outputs to Google Drive
233
+ if : steps.version_check.outputs.changed == 'true'
234
+ uses : satackey/action-google-drive@v1
235
+ with :
236
+ skicka-tokencache-json : ${{ secrets.SKICKA_TOKENCACHE_JSON }}
237
+ google-client-id : ${{ secrets.SKICKA_GOOGLE_CLIENT_ID }}
238
+ google-client-secret : ${{ secrets.SKICKA_GOOGLE_CLIENT_SECRET }}
239
+ upload-from : ./android/app/build/outputs/apk/debug/
240
+ upload-to : /capture-lite/apk/dev/
241
+
198
242
upload-google-drive-qa :
199
243
runs-on : ubuntu-latest
200
244
steps :
@@ -229,7 +273,7 @@ jobs:
229
273
cd android/
230
274
./gradlew assembleDebug
231
275
232
- - name : Upload QA outputs to Google Drive
276
+ - name : Upload QA site build outputs to Google Drive
233
277
if : steps.version_check.outputs.changed == 'true'
234
278
uses : satackey/action-google-drive@v1
235
279
with :
0 commit comments