Merge pull request #6 from xpert-ai/develop #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Storybook Build and Deploy | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
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/[email protected] | |
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: . |