mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-04-20 03:00:24 -04:00
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
name: Android Custom Build
|
|
run-name: ${{ inputs.buildName }}
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
buildName:
|
|
description: 'Run name'
|
|
required: true
|
|
default: 'Edit this name'
|
|
type: string
|
|
mimotoBackendServiceUrl:
|
|
description: 'Mimoto backend service URL'
|
|
required: true
|
|
default: 'https://api.sandbox.mosip.net'
|
|
type: string
|
|
esignetBackendServiceUrl:
|
|
description: 'Esignet backend service URL'
|
|
required: true
|
|
default: 'https://api.sandbox.mosip.net'
|
|
type: string
|
|
allow_env_edit:
|
|
description: 'Edit ENV'
|
|
required: true
|
|
default: 'true'
|
|
type: choice
|
|
options:
|
|
- false
|
|
- true
|
|
theme:
|
|
description: 'Application Theme'
|
|
required: true
|
|
default: 'gradient'
|
|
type: choice
|
|
options:
|
|
- gradient
|
|
- purple
|
|
type:
|
|
description: 'Apk type'
|
|
required: true
|
|
default: 'release'
|
|
type: choice
|
|
options:
|
|
- release
|
|
- debug
|
|
|
|
jobs:
|
|
build-android:
|
|
uses: mosip/kattu/.github/workflows/android-build.yml@master
|
|
with:
|
|
NODE_VERSION: '18.x'
|
|
JAVA_VERSION: '17'
|
|
MIMOTO_HOST: ${{ inputs.mimotoBackendServiceUrl }}
|
|
ESIGNET_HOST: ${{ inputs.esignetBackendServiceUrl }}
|
|
APPLICATION_THEME: ${{ inputs.theme }}
|
|
ALLOW_ENV_EDIT: ${{ inputs.allow_env_edit }}
|
|
APPLICATION_TYPE: ${{ inputs.type }}
|
|
KEYSTORE_ALIAS: androidbuildkey
|
|
KEYSTORE_PASSWORD: 'password'
|
|
SERVICE_LOCATION: '.'
|
|
ANDROID_SERVICE_LOCATION: 'android'
|
|
BUILD_SCRIPT_LOCATION: 'scripts'
|
|
SCRIPT_NAME: './android-build.sh'
|
|
UPLOAD_TO_ACTIONS: 'true'
|
|
ANDROID_ARTIFACT_NAME: ${{ inputs.buildName }}
|
|
ANDROID_ARTIFACT_PATH: "android/app/build/outputs/apk/residentapp/${{ inputs.type }}/Inji_universal.apk" |