Skip to content

Commit

Permalink
ci(health-sdk): Build release builds for QA and prod environments of …
Browse files Browse the repository at this point in the history
…the example app

The QA build allows SSL proxying while the prod one doesn't.

IPC-111
  • Loading branch information
a-szotyori committed Feb 19, 2024
1 parent 790f654 commit b0dc70e
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/health-sdk.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,37 @@ jobs:
java-version: '17'
cache: 'gradle'

- name: build debug example app
- name: build release example app for QA
run: >
./gradlew health-sdk:example-app:assembleDebug
./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: archive debug example app
- name: archive release example app for QA
uses: actions/upload-artifact@v3
with:
name: health-sdk-example-app-debug
path: health-sdk/example-app/build/outputs/apk/debug
name: health-sdk-example-app-qa-release
path: health-sdk/example-app/build/outputs/apk/qa/release

- name: build release example app
- name: build release example app for production
run: >
./gradlew health-sdk:example-app:assembleRelease
./gradlew health-sdk:example-app:assembleProdRelease
-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: archive release example app
- name: archive release example app for production
uses: actions/upload-artifact@v3
with:
name: health-sdk-example-app-release
path: health-sdk/example-app/build/outputs/apk/release
name: health-sdk-example-app-prod-release
path: health-sdk/example-app/build/outputs/apk/prod/release

android-lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b0dc70e

Please sign in to comment.