Commit updated Stories after build
This commit is contained in:
parent
c62895e01a
commit
b4832c37d3
13
.github/workflows/build-storybook.yml
vendored
13
.github/workflows/build-storybook.yml
vendored
@ -3,7 +3,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- webv2
|
- webv2
|
||||||
paths: ['web/stories/**', 'web/components/**'] # Trigger the action only when files change in the folders defined here
|
paths: ['web/stories/**', 'web/components/**', 'web/.storybook/**'] # Trigger the action only when files change in the folders defined here
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
@ -25,6 +25,17 @@ jobs:
|
|||||||
cd -
|
cd -
|
||||||
npm run build-storybook -- -o ../docs/components
|
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 Storybook stories'
|
||||||
|
add: '.storybook/'
|
||||||
|
pull: '--rebase --autostash'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Dispatch event to web site
|
- name: Dispatch event to web site
|
||||||
uses: peter-evans/repository-dispatch@v2
|
uses: peter-evans/repository-dispatch@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user