-
Notifications
You must be signed in to change notification settings - Fork 18
75 lines (73 loc) · 2.43 KB
/
build.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build
on: [push, pull_request]
jobs:
build:
name: Page Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
check-latest: true
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Node.js dependencies
run: yarn install
- name: Page Build
env:
REACT_APP_SITE_TITLE: 哈尔滨工业大学开源镜像站
REACT_APP_ORG_NAME: 哈尔滨工业大学Linux用户协会
REACT_APP_ORG_LINK: https://github.com/hitlug
REACT_APP_SPONSOR_NAME: 哈尔滨工业大学网络与信息中心
GENERATE_SOURCEMAP: false
run: yarn build
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Production Build
path: build
buildsz:
name: Page Build(深圳)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
check-latest: true
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Node.js dependencies
run: yarn install
- name: Page Build
env:
REACT_APP_SITE_TITLE: 哈尔滨工业大学(深圳)开源镜像站
REACT_APP_ORG_NAME: 哈尔滨工业大学(深圳)计算机研究协会
REACT_APP_ORG_LINK: https://github.com/hitszcra
REACT_APP_SPONSOR_NAME: 哈尔滨工业大学(深圳)实验与创新实践中心
GENERATE_SOURCEMAP: false
run: yarn build
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Production Build(深圳)
path: build