Skip to content

Commit

Permalink
Merge pull request #307 from matematikk-mooc/Therese_Persen-Kursp-877…
Browse files Browse the repository at this point in the history
…-deploy-storybook-gh-pages-action

set up workflow to publish storybook on gh-pages
  • Loading branch information
manilpit authored Sep 26, 2023
2 parents 9692a64 + cc02163 commit d97ad9a
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 d97ad9a

Please sign in to comment.