-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 950 Bytes
/
build.yml
File metadata and controls
41 lines (33 loc) · 950 Bytes
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
name: Build
on: [ push, pull_request ]
env:
NODE_VERSION: '14.10.x'
jobs:
Build:
name: Build
runs-on: ubuntu-latest
env:
FEEDBACK_URL: "https://github.com/CSUAuroraLab/ISSUE-COLLECTOR/issues/new/choose"
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: npm install
run: npm install
- name: npm build
run: REACT_APP_FEEDBACK_URL="$FEEDBACK_URL" GENERATE_SOURCEMAP=false npm run build
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: CryptoLearnWeb.zip
path: |
build/*
docker/*