-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (45 loc) · 1.12 KB
/
webpack.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
name: NodeJS with Webpack
on:
push:
branches: [ "main" ]
tags-ignore:
- 'v0.*' # alpha
- 'v1.*' # release
pull_request:
branches: [ "main" ]
workflow_call:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install apt dependencies
run: |
sudo apt-get install -y make
- name: Install npm dependencies
run: |
npm install
- name: Build codam-web-greeter
run: |
make build
- name: Add dist folder to artifact
working-directory: dist
run: |
zip -r ../codam-web-greeter.zip *
- name: Add systemd folder to artifact as subfolder
run: |
zip -r codam-web-greeter.zip systemd
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: codam-web-greeter
path: codam-web-greeter.zip
retention-days: 1