-
-
Notifications
You must be signed in to change notification settings - Fork 51
641 lines (578 loc) · 23.1 KB
/
publish.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
name: Build and publish
on:
push:
tags: v*.*.*
env:
ANDROID_KEYSTORE_PATH: ${{ secrets.ANDROID_KEYSTORE_PATH }}
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up Java 17
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
- name: Set up Fastlane
run: gem install fastlane --no-document --quiet
- name: Unpack secrets medic
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV }}
run: make org=medic keydec
- name: Unpack secrets alerte_niger
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_ALERTE_NIGER }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_ALERTE_NIGER }}
run: make org=alerte_niger keydec
- name: Unpack secrets chis_ne
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_CHIS_NE }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_CHIS_NE }}
run: make org=chis_ne keydec
- name: Unpack secrets cht_rci
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_CHT_RCI }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_CHT_RCI }}
run: make org=cht_rci keydec
- name: Assemble unbranded
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "unbranded" }'
- name: Assemble gamma
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "medicmobilegamma" }'
- name: Assemble gamma training
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "medicmobilegamma_training" }'
# demo app is disabled for now
#- name: Assemble demo
# uses: maierj/[email protected]
# with:
# lane: build
# options: '{ "flavor": "medicmobiledemo" }'
- name: Assemble bracuganda
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "bracuganda" }'
- name: Assemble cic_guatemala
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "cic_guatemala" }'
- name: Assemble cmmb_kenya
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "cmmb_kenya" }'
- name: Assemble covid_moh_mali
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "covid_moh_mali" }'
- name: Assemble ebpp_indonesia
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "ebpp_indonesia" }'
- name: Assemble hope_through_health
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "hope_through_health" }'
- name: Assemble livinggoods
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "livinggoods" }'
- name: Assemble livinggoodskenya
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "livinggoodskenya" }'
- name: Assemble livinggoods_assisted_networks
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "livinggoods_assisted_networks" }'
- name: Assemble livinggoods_innovation_ke_supervisor
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "livinggoods_innovation_ke_supervisor" }'
- name: Assemble livinggoods_innovation_ke_hivst
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "livinggoods_innovation_ke_hivst" }'
- name: Assemble moh_kenya_siaya_red
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_kenya_siaya_red" }'
- name: Assemble moh_kenya_siaya_green
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_kenya_siaya_green" }'
- name: Assemble moh_kenya_siaya_black
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_kenya_siaya_black" }'
- name: Assemble moh_mali
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_mali" }'
- name: Assemble moh_zanzibar_training
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_zanzibar_training" }'
- name: Assemble moh_zanzibar
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_zanzibar" }'
- name: Assemble musomali
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "musomali" }'
- name: Assemble pih_malawi
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "pih_malawi" }'
- name: Assemble pih_malawi_supervisor
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "pih_malawi_supervisor" }'
- name: Assemble safaridoctors_kenya
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "safaridoctors_kenya" }'
- name: Assemble surveillance_covid19_kenya
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "surveillance_covid19_kenya" }'
- name: Assemble trippleeighty
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "trippleeighty" }'
- name: Assemble vhw_burundi
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "vhw_burundi" }'
- name: Assemble icm_ph_chc
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "icm_ph_chc" }'
- name: Assemble vhtapp_uganda
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "vhtapp_uganda" }'
- name: Assemble itech_aurum
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "itech_aurum" }'
- name: Assemble itech_malawi
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "itech_malawi" }'
- name: Unpack secrets cares_malawi_kch
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_CARES_MALAWI_KCH }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_CARES_MALAWI_KCH }}
run: make org=cares_malawi_kch keydec
- name: Assemble cares_malawi_kch
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "cares_malawi_kch" }'
env:
ANDROID_KEYSTORE_PATH: cares_malawi_kch.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_CARES_MALAWI_KCH }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_CARES_MALAWI_KCH }}
- name: Unpack secrets cares_malawi_mpc
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_CARES_MALAWI_MPC }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_CARES_MALAWI_MPC }}
run: make org=cares_malawi_mpc keydec
- name: Assemble cares_malawi_mpc
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "cares_malawi_mpc" }'
env:
ANDROID_KEYSTORE_PATH: cares_malawi_mpc.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_CARES_MALAWI_MPC }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_CARES_MALAWI_MPC }}
- name: Assemble alerte_niger
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "alerte_niger" }'
env:
ANDROID_KEYSTORE_PATH: alerte_niger.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_ALERTE_NIGER }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_ALERTE_NIGER }}
- name: Unpack secrets moh_kenya_echis
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_KENYA_ECHIS }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_KENYA_ECHIS }}
run: make org=moh_kenya_echis keydec
- name: Assemble moh_kenya_echis
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_kenya_echis" }'
env:
ANDROID_KEYSTORE_PATH: moh_kenya_echis.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_KENYA_ECHIS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_KENYA_ECHIS }}
- name: Bundle moh_kenya_echis
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_kenya_echis" }'
env:
ANDROID_KEYSTORE_PATH: moh_kenya_echis.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_KENYA_ECHIS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_KENYA_ECHIS }}
- name: Assemble chis_ne
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "chis_ne" }'
env:
ANDROID_KEYSTORE_PATH: chis_ne.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_CHIS_NE }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_CHIS_NE }}
- name: Assemble cht_rci
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "cht_rci" }'
env:
ANDROID_KEYSTORE_PATH: cht_rci.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_CHT_RCI }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_CHT_RCI }}
- name: Bundle alerte_niger
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "alerte_niger" }'
env:
ANDROID_KEYSTORE_PATH: alerte_niger.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_ALERTE_NIGER }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_ALERTE_NIGER }}
- name: Bundle chis_ne
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "chis_ne" }'
env:
ANDROID_KEYSTORE_PATH: chis_ne.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_CHIS_NE }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_CHIS_NE }}
- name: Bundle cht_rci
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "cht_rci" }'
env:
ANDROID_KEYSTORE_PATH: cht_rci.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_CHT_RCI }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_CHT_RCI }}
- name: Unpack secrets moh_civ_uat
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_CIV_UAT }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_CIV_UAT }}
run: make org=moh_civ_uat keydec
- name: Assemble moh_civ_uat
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_civ_uat" }'
env:
ANDROID_KEYSTORE_PATH: moh_civ_uat.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_CIV_UAT }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_CIV_UAT }}
- name: Bundle moh_civ_uat
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_civ_uat" }'
env:
ANDROID_KEYSTORE_PATH: moh_civ_uat.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_CIV_UAT }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_CIV_UAT }}
- name: Unpack secrets moh_mali_chw
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_MALI_CHW }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_MALI_CHW }}
run: make org=moh_mali_chw keydec
- name: Assemble moh_mali_chw
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_mali_chw" }'
env:
ANDROID_KEYSTORE_PATH: moh_mali_chw.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_MALI_CHW }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_MALI_CHW }}
- name: Bundle moh_mali_chw
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_mali_chw" }'
env:
ANDROID_KEYSTORE_PATH: moh_mali_chw.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_MALI_CHW }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_MALI_CHW }}
- name: Unpack secrets moh_niger_chw
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_NIGER_CHW }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_NIGER_CHW }}
run: make org=moh_niger_chw keydec
- name: Assemble moh_niger_chw
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_niger_chw" }'
env:
ANDROID_KEYSTORE_PATH: moh_niger_chw.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_NIGER_CHW }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_NIGER_CHW }}
- name: Bundle moh_niger_chw
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_niger_chw" }'
env:
ANDROID_KEYSTORE_PATH: moh_niger_chw.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_NIGER_CHW }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_NIGER_CHW }}
- name: Unpack secrets moh_mali_chw_training_three
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_MALI_CHW_TRAINING_THREE }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_MALI_CHW_TRAINING_THREE }}
run: make org=moh_mali_chw_training_three keydec
- name: Assemble moh_mali_chw_training_three
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_mali_chw_training_three" }'
env:
ANDROID_KEYSTORE_PATH: moh_mali_chw_training_three.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_MALI_CHW_TRAINING_THREE }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_MALI_CHW_TRAINING_THREE }}
- name: Bundle moh_mali_chw_training_three
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_mali_chw_training_three" }'
env:
ANDROID_KEYSTORE_PATH: moh_mali_chw_training_three.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_MALI_CHW_TRAINING_THREE }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_MALI_CHW_TRAINING_THREE }}
- name: Unpack secrets moh_mali_chw_training_2
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_MALI_CHW_TRAINING_2 }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_MALI_CHW_TRAINING_2 }}
run: make org=moh_mali_chw_training_2 keydec
- name: Assemble moh_mali_chw_training_2
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_mali_chw_training_2" }'
env:
ANDROID_KEYSTORE_PATH: moh_mali_chw_training_2.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_MALI_CHW_TRAINING_2 }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_MALI_CHW_TRAINING_2 }}
- name: Bundle moh_mali_chw_training_2
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_mali_chw_training_2" }'
env:
ANDROID_KEYSTORE_PATH: moh_mali_chw_training_2.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_MALI_CHW_TRAINING_2 }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_MALI_CHW_TRAINING_2 }}
- name: Unpack secrets moh_togo_uat
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_TOGO_UAT }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_TOGO_UAT }}
run: make org=moh_togo_uat keydec
- name: Assemble moh_togo_uat
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_togo_uat" }'
env:
ANDROID_KEYSTORE_PATH: moh_togo_uat.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_TOGO_UAT }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_TOGO_UAT }}
- name: Bundle moh_togo_uat
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_togo_uat" }'
env:
ANDROID_KEYSTORE_PATH: moh_togo_uat.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_TOGO_UAT }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_TOGO_UAT }}
- name: Unpack secrets moh_togo_echis
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_TOGO_ECHIS }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_TOGO_ECHIS }}
run: make org=moh_togo_echis keydec
- name: Assemble moh_togo_echis
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_togo_echis" }'
env:
ANDROID_KEYSTORE_PATH: moh_togo_echis.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_TOGO_ECHIS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_TOGO_ECHIS }}
- name: Bundle moh_togo_echis
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_togo_echis" }'
env:
ANDROID_KEYSTORE_PATH: moh_togo_echis.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_TOGO_ECHIS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_TOGO_ECHIS }}
- name: Unpack secrets lumbini_ne
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_LUMBINI_NE }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_LUMBINI_NE }}
run: make org=lumbini_ne keydec
- name: Assemble lumbini_ne
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "lumbini_ne" }'
env:
ANDROID_KEYSTORE_PATH: lumbini_ne.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_LUMBINI_NE }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_LUMBINI_NE }}
- name: Bundle lumbini_ne
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "lumbini_ne" }'
env:
ANDROID_KEYSTORE_PATH: lumbini_ne.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_LUMBINI_NE }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_LUMBINI_NE }}
- name: Unpack secrets gandaki_ne
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_GANDAKI_NE }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_GANDAKI_NE }}
run: make org=gandaki_ne keydec
- name: Assemble gandaki_ne
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "gandaki_ne" }'
env:
ANDROID_KEYSTORE_PATH: gandaki_ne.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_GANDAKI_NE }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_GANDAKI_NE }}
- name: Bundle gandaki_ne
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "gandaki_ne" }'
env:
ANDROID_KEYSTORE_PATH: gandaki_ne.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_GANDAKI_NE }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_GANDAKI_NE }}
- name: Unpack secrets safaridoctors_kenya_yha
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_SAFARIDOCTORS_KENYA_YHA }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_SAFARIDOCTORS_KENYA_YHA }}
run: make org=safaridoctors_kenya_yha keydec
- name: Assemble safaridoctors_kenya_yha
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "safaridoctors_kenya_yha" }'
env:
ANDROID_KEYSTORE_PATH: safaridoctors_kenya_yha.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_SAFARIDOCTORS_KENYA_YHA }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_SAFARIDOCTORS_KENYA_YHA }}
- name: Bundle safaridoctors_kenya_yha
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "safaridoctors_kenya_yha" }'
env:
ANDROID_KEYSTORE_PATH: safaridoctors_kenya_yha.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_SAFARIDOCTORS_KENYA_YHA }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_SAFARIDOCTORS_KENYA_YHA }}
- name: Unpack secrets moh_civ
env:
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY_MOH_CIV }}
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV_MOH_CIV }}
run: make org=moh_civ keydec
- name: Assemble moh_civ
uses: maierj/[email protected]
with:
lane: build
options: '{ "flavor": "moh_civ" }'
env:
ANDROID_KEYSTORE_PATH: moh_civ.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_CIV }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_CIV }}
- name: Bundle moh_civ
uses: maierj/[email protected]
with:
lane: bundle
options: '{ "flavor": "moh_civ" }'
env:
ANDROID_KEYSTORE_PATH: moh_civ.keystore
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD_MOH_CIV }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD_MOH_CIV }}
- name: GitHub release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
build/outputs/apk/**/*-release.apk
build/outputs/bundle/**/*-release.aab
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}