forked from glideapps/glide-data-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 1 KB
/
storybook.js.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: Storybook Build and Deploy
on:
push:
branches: ["main"]
paths: ["packages/core/**", "packages/cells/**", "packages/source/**"]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 20.10.0
- name: Install and Build 🔧
run: |
npm install
npm run build-storybook
- name: "Add .nojekyll 📄"
run: cd storybook-build && touch .nojekyll
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: storybook-build
CLEAN: true
TARGET_FOLDER: docs