-
Notifications
You must be signed in to change notification settings - Fork 8
32 lines (31 loc) · 1.15 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
name: Storybook Build and Deploy
on:
push:
branches: [ "main" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4.1.1
with:
persist-credentials: false
- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
npm install --legacy-peer-deps
npm run b:docs
mv dist/storybook/angular docs/storybook
mv packages/core/docs docs/api/core
mv packages/store/docs docs/api/store
mv packages/sql/docs docs/api/sql
mv packages/xmla/docs docs/api/xmla
mv packages/echarts/docs docs/api/echarts
mv packages/duckdb/docs docs/api/duckdb
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder that the build-storybook script generates files.
clean: true # Automatically remove deleted files from the deploy branch
target-folder: .