-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a003946
commit 6705216
Showing
6 changed files
with
212 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build and test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Test | ||
run: make test | ||
- name: Set up ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
- name: Set up fastlane | ||
run: gem install fastlane --no-document --quiet | ||
- name: Unpack secrets | ||
env: | ||
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY }} | ||
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV }} | ||
run: | | ||
openssl aes-256-cbc -K $ANDROID_SECRETS_KEY -iv $ANDROID_SECRETS_IV -in secrets.tar.gz.enc -out ./secrets.tar.gz -d | ||
tar -xf ./secrets.tar.gz | ||
- name: Assemble unbranded | ||
uses: maierj/[email protected] | ||
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 }} | ||
with: | ||
lane: build | ||
options: '{ "flavor": "unbranded" }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
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-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
- name: Set up fastlane | ||
run: gem install fastlane --no-document --quiet | ||
- name: Unpack secrets | ||
env: | ||
ANDROID_SECRETS_KEY: ${{ secrets.ANDROID_SECRETS_KEY }} | ||
ANDROID_SECRETS_IV: ${{ secrets.ANDROID_SECRETS_IV }} | ||
run: | | ||
openssl aes-256-cbc -K $ANDROID_SECRETS_KEY -iv $ANDROID_SECRETS_IV -in secrets.tar.gz.enc -out ./secrets.tar.gz -d | ||
tar -xf ./secrets.tar.gz | ||
- 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 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 | ||
uses: maierj/[email protected] | ||
with: | ||
lane: build | ||
options: '{ "flavor": "livinggoods_innovation_ke" }' | ||
- 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 simprints | ||
uses: maierj/[email protected] | ||
with: | ||
lane: build | ||
options: '{ "flavor": "simprints" }' | ||
- name: Assemble surveillance_covid19_kenya | ||
uses: maierj/[email protected] | ||
with: | ||
lane: build | ||
options: '{ "flavor": "surveillance_covid19_kenya" }' | ||
- name: Assemble vhw_burundi | ||
uses: maierj/[email protected] | ||
with: | ||
lane: build | ||
options: '{ "flavor": "vhw_burundi" }' | ||
- name: GitHub release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
draft: true | ||
files: build/outputs/apk/**/*.apk | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
android.useAndroidX=true | ||
org.gradle.jvmargs=-Xmx2048m |
Binary file not shown.