Skip to content

deploy-storybook

deploy-storybook #657

name: deploy-storybook
on:
workflow_run:
workflows: [test]
types: [completed]
branches: [main]
env:
FOLDER_PATH_STORYBOOK_BUILD: ./build-storybook-static
jobs:
deploy-storybook:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment:
name: storybook-demos
url: https://mkosir.github.io/react-parallax-tilt/?path=/story/react-parallax-tilt--event-params
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧
uses: ./.github/workflows/actions/setup_node-cache_dep-install_dep
- name: Build 🏗️
run: npm run storybook-build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ${{ env.FOLDER_PATH_STORYBOOK_BUILD }}
clean: true