Customized Build Android Registration-Client #4
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: 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 |