-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (54 loc) · 2.06 KB
/
health-sdk.publish.example.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
name: Publish Health SDK Example App QA Build to App Center
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: Install appcenter-cli
run: >
npm install -g appcenter-cli
- name: Distribute Health-sdk example apk to App Center
uses: akiojin/[email protected]
with:
token: ${{ secrets.GINI_HEALTH_SDK_EXAMPLE_APPCENTER_API_TOKEN }}
path: health-sdk/example-app/build/outputs/apk/qa/release/example-app-qa-release.apk
app: Gini-Team-Organization/Gini-Health-SDK-Example
group: 'Internal'
release_notes: |
${{ format('{{ {0} {1} }}', github.ref, github.sha) }}
${{ github.event.head_commit.message }}