-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (39 loc) · 940 Bytes
/
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
name: Publish Documentation
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
gh-test:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install & Build
run: |
npm install --legacy-peer-deps
npm run build
gh-release:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install & Build
run: |
npm install --legacy-peer-deps
npm run build
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build