-
Notifications
You must be signed in to change notification settings - Fork 57
40 lines (36 loc) · 1.29 KB
/
build_client.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
name: Customized Build Android Registration-Client
env:
defaultServerBaseURL: https://api-internal.sandbox.xyz.net/
on:
workflow_dispatch:
inputs:
defaultServerBaseURL:
description: 'Server Base URL'
required: true
default: 'api-internal.sandbox.xyz.net'
type: string
jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: |
npm install
- name: Updating libs-snapshot-local to libs-release local for artifactory URL's.
run: |
find . -type f -name "*build.gradle" -print0 | xargs -0 sed -i "s/api-internal.sandbox.xyz.net/${{ github.event.inputs.defaultServerBaseURL }}/g"
find . -type f -name "*gradle.properties" -print0 | xargs -0 sed -i "s/sqp_19c9702eb9f5ddfebbfc36eaa6edf39d22280a49/${{ secrets.SONAR_TOKEN }}/g"
- name: Build Android Registration-Client
run: |
cd client
chmod +x gradlew
./gradlew assembleDebug
ls app/build/outputs/apk/debug
find -name '*.apk'
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: apk-output
path: ./client/app/build/outputs/apk/debug/app-debug.apk
retention-days: 7