-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (55 loc) · 1.76 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
name: Build
on: [push, pull_request]
jobs:
build:
name: Page Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
check-latest: true
cache: yarn
cache-dependency-path: yarn.lock
- 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@v3
with:
name: Production Build
path: build
buildsz:
name: Page Build(深圳)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
check-latest: true
cache: yarn
cache-dependency-path: yarn.lock
- 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@v3
with:
name: Production Build(深圳)
path: build