Skip to content

Commit 360d826

Browse files
committed
chore: use github action
1 parent 7a9638e commit 360d826

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # default branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: npm install
14+
- run: npm run docs:build
15+
- name: Deploy
16+
uses: peaceiris/actions-gh-pages@v3
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}
19+
publish_dir: ./docs-dist

0 commit comments

Comments
 (0)