Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Commit 339538d

Browse files
committed
add GitHub Page Deploy flow
1 parent a7edaa5 commit 339538d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Generate Doc and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
name: Deploy to gh-pages
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Use Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 10.x
18+
- name: Install dependencies
19+
run: yarn --frozen-lockfile
20+
env:
21+
CI: true
22+
- name: Generate Storybook
23+
run: yarn storybook:build
24+
env:
25+
CI: true
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v2.5.0
28+
env:
29+
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
30+
PUBLISH_BRANCH: gh-pages
31+
PUBLISH_DIR: ./docs

0 commit comments

Comments
 (0)