Skip to content

Feat: Add GitHub Actions workflow for deploying Storybook to GitHub Pages - #180

Merged
arome merged 9 commits into
mainfrom
omar/deploy-storybook-to-gh-pages
Nov 3, 2025
Merged

Feat: Add GitHub Actions workflow for deploying Storybook to GitHub Pages#180
arome merged 9 commits into
mainfrom
omar/deploy-storybook-to-gh-pages

Conversation

@arome

@arome arome commented Oct 9, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@arome
arome enabled auto-merge (squash) October 9, 2025 13:32
@arome
arome requested a review from Copilot October 10, 2025 17:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a GitHub Actions workflow to automatically deploy Storybook to GitHub Pages when changes are pushed to the main branch or manually triggered. The workflow builds the Storybook static site and deploys it using GitHub's Pages deployment action.

Key changes:

  • Added build script to Storybook package.json for generating static output
  • Created GitHub Actions workflow with build and deploy jobs for Pages deployment

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/apps/storybook/package.json Added build script to generate static Storybook output
.github/workflows/deploy-storybook.yml New workflow for building and deploying Storybook to GitHub Pages

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .github/workflows/deploy-storybook.yml Outdated
arome and others added 2 commits October 10, 2025 13:03
@arome
arome requested a review from aruniverse October 16, 2025 21:37

@aruniverse aruniverse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you review what other repos publishing storybook looks like

Comment thread packages/apps/storybook/package.json Outdated
Comment thread .github/workflows/deploy-storybook.yml Outdated
@arome

arome commented Oct 23, 2025

Copy link
Copy Markdown
Contributor Author

can you review what other repos publishing storybook looks like

I checked appui, they use JamesIves/github-pages-deploy-action@v4 to deploy which relies on creating a separate gh-pages branch and generating a commit to it every time a PR is merged. I'm using the actions/deploy-pages@v1 which is the official way to deploy artifacts to pages. It's less customizable, but easier to implement.

Honestly I'm not too familiar with ci/cd, but that was just an attempt to have the storybook available to view without having to run the code, cuz that would be really helpful.

Comment thread packages/apps/storybook/package.json Outdated
@arome
arome merged commit 1b248ab into main Nov 3, 2025
5 checks passed
@arome
arome deleted the omar/deploy-storybook-to-gh-pages branch November 3, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants