Skip to content

Commit 7f01b93

Browse files
committed
Add GitHub action to build docs
1 parent 298ede7 commit 7f01b93

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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: |
17+
cd docs
18+
yarn install
19+
yarn build
20+
- name: Upload to GitHub Pages
21+
if: github.ref == 'refs/heads/master'
22+
uses: peaceiris/actions-gh-pages@v2.5.0
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
25+
PUBLISH_BRANCH: gh-pages
26+
PUBLISH_DIR: ./docs/build
27+
with:
28+
emptyCommits: false
29+
keepFiles: false

0 commit comments

Comments
 (0)