Skip to content

Adding gandaki_ne flavor based on v1.3.0 for medic/config-moh-nepal#1054 #139

Adding gandaki_ne flavor based on v1.3.0 for medic/config-moh-nepal#1054

Adding gandaki_ne flavor based on v1.3.0 for medic/config-moh-nepal#1054 #139

Workflow file for this run

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: 2.7
- 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_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_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 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: 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 }}