Skip to content

Commit 063ba33

Browse files
committed
Add GitHub action to build docs
1 parent 298ede7 commit 063ba33

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@master
11+
- name: Use Node.js 10.x
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: 10.x
15+
- name: Build Docs
16+
run: cd docs
17+
- name: Install Dependencies
18+
run: yarn install
19+
- name: Build
20+
run: yarn build
21+
- name: Upload to GitHub Pages
22+
if: github.ref == 'refs/heads/master'
23+
uses: peaceiris/[email protected]
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
26+
PUBLISH_BRANCH: gh-pages
27+
PUBLISH_DIR: ./build
28+
with:
29+
emptyCommits: false
30+
keepFiles: false

0 commit comments

Comments
 (0)