Skip to content

Commit 4cfa8a4

Browse files
committed
restore docs workflow
1 parent a4c87bc commit 4cfa8a4

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '12.x'
17+
- name: Install dependencies
18+
run: npm install
19+
- name: Build docs
20+
run: npm run docs
21+
- name: Deploy to GitHub Pages
22+
if: success()
23+
uses: crazy-max/ghaction-github-pages@v2
24+
with:
25+
target_branch: gh-pages
26+
build_dir: docs
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)