Skip to content

Merge pull request #531 from matematikk-mooc/marius/DIT-33 #122

Merge pull request #531 from matematikk-mooc/marius/DIT-33

Merge pull request #531 from matematikk-mooc/marius/DIT-33 #122

name: Deploy Storybook
on:
push:
branches:
- dev
paths:
- "src/vue/**"
workflow_dispatch:
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build Storybook
run: GH_PAGES=true npm run build-storybook
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.STORY_BOOK }}
publish_dir: storybook-static