mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 13:50:06 +03:00
Add workflow for building storybook
This commit is contained in:
parent
ff6886575f
commit
8638961b59
1 changed files with 28 additions and 0 deletions
28
.github/workflows/build-storybook.yml
vendored
Normal file
28
.github/workflows/build-storybook.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
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
|
||||
|
||||
- name: Commit changes
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
author_name: Owncast
|
||||
author_email: owncast@owncast.online
|
||||
message: "Commit updated components/styles"
|
||||
add: "docs/components"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue