Skip to content

Instantly share code, notes, and snippets.

@mrchief
Last active July 1, 2021 19:10
Show Gist options
  • Save mrchief/81f15d0961d00794aeb8ba7dd29ed091 to your computer and use it in GitHub Desktop.
Save mrchief/81f15d0961d00794aeb8ba7dd29ed091 to your computer and use it in GitHub Desktop.
Storybook setup for gh-pages

Storybook setup for gh-pages

Initialize empty gh-pages

  • Create a new orphan branch: git checkout --orphan gh-pages
  • Clean all (untracked) files: git reset --hard or git rm -rf .
  • Create first commit: git commit --allow-empty -m "Initializing gh-pages branch"
  • Push the new branch on your repo: git push origin gh-pages

Enable gh-pages in your repo

image

  • Follow enumerated steps to setup Github Pages
  • Grab the URL in step 4

Tell the workflow about the URL

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment