forked from PSMRI/Helpline104-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (48 loc) · 1.2 KB
/
package.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Package
on:
push:
branches:
- develop
paths-ignore:
- target/**
- dist/**
pull_request:
branches:
- develop
paths-ignore:
- target/**
- dist/**
jobs:
package:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Build with NPM and Create WAR file
run: |
npm config set legacy-peer-deps true
npm install -g @angular/cli
npm install -g grunt-cli
npm install [email protected] --save-dev
npm install [email protected]
npm install node-sass --force
npm install --force
npm run ng build
- name: Create WAR file
run: jar -cvf 104ui-v1.0.war -C dist .
- name: Upload WAR file as artifact
uses: actions/upload-artifact@v2
with:
name: Helpline104-UI
path: 104ui-v1.0.war