-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (33 loc) · 988 Bytes
/
storybook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Storybook
on:
push:
branches:
- master
defaults:
run:
shell: bash
jobs:
publish:
name: Publish 📖
runs-on: ubuntu-latest
steps:
- name: Pre-reqs
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 12
- name: Setup Base
run: yarn install
- name: Build Base
run: yarn build
- name: Setup Demo
working-directory: ./demo
run: yarn install
- name: Build Storybook
run: yarn build-storybook
- name: Deploying storybook
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: storybook-static # The folder the action should deploy.