forked from raystack/apsara
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (29 loc) · 1.03 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
name: Build
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
yarn install
yarn build
yarn build-storybook --quiet
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder that the build-storybook script generates files.
CLEAN: true # Automatically remove deleted files from the deploy branch