Skip to content

Commit

Permalink
Create storybook.yml
Browse files Browse the repository at this point in the history
This is an attempt to create a github action which builds the storybook on every push to main branch and then deploys it to GitHub Pages, so it can be used as a documentation for the library of the npm package that I am trying to build.
  • Loading branch information
rish-0-0 authored Oct 27, 2024
1 parent 723c8d1 commit a7c6538
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and Publish storybook to GitHub Pages

on:
push:
branches:
- "main"
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- id: build-publish
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.0
with:
path: test/storybook/dist
build_command: npm run build-storybook

0 comments on commit a7c6538

Please sign in to comment.