Skip to content

Commit

Permalink
set up workflow to publish storybook on gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ThereseRingPersen committed Sep 25, 2023
1 parent 9692a64 commit cc02163
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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@v2

- name: Install dependencies
run: npm install

- name: Build Storybook
run: 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

0 comments on commit cc02163

Please sign in to comment.