owncast/.github/workflows/build-storybook.yml

26 lines
860 B
YAML
Raw Normal View History

2022-05-12 06:29:31 +03:00
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
npm run build-storybook -- -o ../docs/components
2022-05-13 01:21:46 +03:00
- name: Dispatch event to web site
uses: peter-evans/repository-dispatch@v2
2022-05-13 01:12:01 +03:00
with:
2022-05-13 01:21:46 +03:00
token: ${{ secrets.BUNDLE_STORYBOOK_OWNCAST_ONLINE }}
2022-05-13 01:12:01 +03:00
repository: owncast/owncast.github.io
event-type: bundle-components-library