owncast/.github/workflows/build-storybook.yml
2022-07-20 22:36:20 -07:00

26 lines
868 B
YAML

name: Build and Deploy Components+Style Guide
on:
push:
paths: ['web/stories/**', 'web/components/**'] # Trigger the action only when files change in the folders defined here
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: webv2 # Remove when webv2 gets merged into develop
- name: Install and Build
run: | # Install npm packages and build the Storybook files
cd web
npm install --include-dev --force
npm run build-storybook -- -o ../docs/components
- name: Dispatch event to web site
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.BUNDLE_STORYBOOK_OWNCAST_ONLINE }}
repository: owncast/owncast.github.io
event-type: bundle-components-library