Merge pull request #655 from gini/IPC-532-communicaiton-tone #156
Workflow file for this run
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
name: Publish Health SDK Example App QA Build to Firebase App Distribution | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'health-sdk/**' | |
- 'health-api-library/**' | |
- 'core-api-library/**' | |
- 'gradle/**' | |
jobs: | |
check: | |
uses: ./.github/workflows/health-sdk.check.yml | |
secrets: | |
GINI_MOBILE_TEST_CLIENT_SECRET: ${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }} | |
HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD: ${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }} | |
publish_to_app_center: | |
needs: check | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
cache: 'gradle' | |
- name: setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2.0' | |
bundler-cache: true | |
- name: build release example app for QA | |
run: > | |
./gradlew health-sdk:example-app:assembleQaRelease | |
-PclientId="gini-mobile-test" | |
-PclientSecret="${{ secrets.GINI_MOBILE_TEST_CLIENT_SECRET }}" | |
-PreleaseKeystoreFile="health_sdk_example.jks" | |
-PreleaseKeystorePassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' | |
-PreleaseKeyAlias="health_sdk_example" | |
-PreleaseKeyPassword='${{ secrets.HEALTH_SDK_EXAMPLE_APP_KEYSTORE_PASSWORD }}' | |
- name: Check file existence | |
uses: andstor/file-existence-action@v3 | |
with: | |
files: "./health-sdk/example-app/build/outputs/apk/qa/release/example-app-qa-release.apk" | |
fail: true | |
- name: Distribute Health-sdk example apk to Firebase App Distribution | |
uses: emertozd/Firebase-Distribution-Github-Action@v2 | |
with: | |
appId: ${{secrets.GINI_HEALTH_SDK_EXAMPLE_APP_FIREBASE_ID}} | |
serviceCredentialsFileContent: ${{ secrets.FIREBASE_CREDENTIAL_FILE_CONTENT }} | |
groups: testers | |
file: health-sdk/example-app/build/outputs/apk/qa/release/example-app-qa-release.apk | |
releaseNotes: | | |
${{ format('{{ {0} {1} }}', github.ref, github.sha) }} | |
${{ github.event.head_commit.message }} |