Skip to content

Commit c2905e6

Browse files
authored
Merge pull request #108 from openimis/manual-build-action
Manual build
2 parents bdfb7bb + 5d97c5d commit c2905e6

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

.github/workflows/manual.yml

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

0 commit comments

Comments
 (0)