CivicActions / FE-resource-library

Front end resource library
https://civicactions.github.io/FE-resource-library/
4 stars 1 forks source link

Deploy story book and document how to update #4

Closed dgading closed 2 years ago

dgading commented 2 years ago

We need to be able to see the new Storybook instance on the repo. Using something like gh-pages we need to come up with a way process to keep the Storybook instance fresh.

alex9000 commented 2 years ago

https://dev.to/kouts/deploy-storybook-to-github-pages-3bij

cfbauer commented 2 years ago

Seemed like @dgading was leaning towards gh-pages and I found this documentation which uses it:

https://budiirawan.com/how-to-publish-storybook-github-pages/

cfbauer commented 2 years ago

Summary of that documentation:

  1. Create gh-pages branch
  2. Set GitHubg pages to use that branch as the source in the GitHub settings
  3. Create a .github/workflows/storybook.yml file that looks like this:

`name: Storybook on: push: branches:

  1. Any push to main branch should trigger the deployment
erichuffman commented 2 years ago

storybook.yml file added to the .github/workflows directory, which triggers a build of storybook, and push to gh-pages branch anytime there's a merge into main branch. Closing issue.