Skip to content

Commit

Permalink
Add storybook workflow (#157)
Browse files Browse the repository at this point in the history
This will run when dispatched or when master is pushed.
Makes sure storybook always has up to date content.
  • Loading branch information
flostellbrink committed Sep 30, 2021
1 parent bbaa0a1 commit 4132aed
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: make_storybook

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
make_storybook:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
scope: brianzinn

- name: install build react-babylon
run: |
yarn install
yarn build
- name: install build storybook
run: |
cd ./storybook
yarn install
yarn build-storybook
- name: deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: storybook/storybook-static

0 comments on commit 4132aed

Please sign in to comment.