Skip to content

Commit 05fd9da

Browse files
committed
Github Action: manual build
1 parent e772b24 commit 05fd9da

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

.github/workflows/manual.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: manualbuild
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
api_base_url:
7+
description: URL of the REST API
8+
required: true
9+
default: https://release.openimis.org/rest/
10+
app_name:
11+
description: Display name of the application
12+
required: false
13+
default: Claims Manual
14+
app_dir:
15+
description: Name of the folder in Documents, default IMIS-CLI
16+
required: false
17+
application_id_suffix:
18+
description: Display suffix of the app, like .mvDev or .bephaDev, defaults to .cli
19+
required: false
20+
cli_java_dir:
21+
description: java source folder for custom functions. Only works with application_id_suffix .cli
22+
required: false
23+
cli_res_dir:
24+
description: Resources folder for icons. Only works with application_id_suffix .cli
25+
required: false
26+
# Branch is chosen by default in github manual actions
27+
28+
jobs:
29+
build:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
35+
- name: Setup JDK 1.8
36+
uses: actions/setup-java@v1
37+
with:
38+
java-version: 1.8
39+
40+
- name: Environment info
41+
run: |
42+
gradle --version
43+
echo url ${{ github.event.inputs.api_base_url }}
44+
echo app name ${{ github.event.inputs.app_name }}
45+
46+
- name: build
47+
run: |
48+
./gradlew assembleCliDebug --stacktrace
49+
env:
50+
API_BASE_URL: "${{ github.event.inputs.api_base_url }}"
51+
CLI_APP_NAME: "${{ github.event.inputs.app_name }}"
52+
CLI_APP_DIR: "${{ github.event.inputs.app_dir }}"
53+
CLI_JAVA_DIR: "${{ github.event.inputs.cli_java_dir }}"
54+
CLI_RES_DIR: "${{ github.event.inputs.cli_res_dir }}"
55+
APPLICATION_ID_SUFFIX: "${{ github.event.inputs.application_id_suffix }}"
56+
57+
- name: Environment info
58+
run: |
59+
gradle --version
60+
61+
- uses: actions/upload-artifact@v2
62+
with:
63+
name: openimis-claims-apk-${{github.run_number}}-${{github.sha}}
64+
path: ./claimManagement/build/outputs/**/*.apk
65+
66+
# - name: build
67+
# run: |
68+
# ./gradlew bundleDebug --stacktrace
69+
#
70+
# - uses: actions/upload-artifact@v2
71+
# with:
72+
# name: openimis-claims-aab-${{github.run_number}}-${{github.sha}}
73+
# path: ./claimManagement/build/outputs/**/*.aab
74+
75+

0 commit comments

Comments
 (0)