2023-10-11 11:07:11 +03:00
|
|
|
name: Storybook
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master # if any push happens on branch `main`, run this workflow. You could also add `paths` to detect changes in specific folder
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-and-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
|
|
|
|
- name: Install and Build
|
|
|
|
run: |
|
|
|
|
npm ci
|
2023-10-11 11:11:45 +03:00
|
|
|
npm run build:storybook
|
2023-10-11 11:07:11 +03:00
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@3.6.2
|
|
|
|
with:
|
|
|
|
branch: gh-pages
|
|
|
|
folder: storybook-static # output folder from `npm run build-storybook`
|