-
Notifications
You must be signed in to change notification settings - Fork 2.2k
36 lines (33 loc) · 1.06 KB
/
storybook.yml
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
name: Build and Deploy Documentation
on:
workflow_run:
workflows: ["Release"]
types: [completed]
branches:
- master
paths:
- 'src/**'
- 'stories/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
yarn install --frozen-lockfile
yarn build-storybook
- name: Deploy 🚀
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
folder: storybook-static # The folder that the build-storybook script generates files.
target-folder: examples
clean: true # Automatically remove deleted files from the deploy branch
commit-message: 'docs: update documentation site'