Skip to content

Add GitHub Actions workflow to deploy Storybook to GitHub Pages#1648

Merged
gugu merged 1 commit into
mainfrom
feature/storybook-github-pages
Mar 5, 2026
Merged

Add GitHub Actions workflow to deploy Storybook to GitHub Pages#1648
gugu merged 1 commit into
mainfrom
feature/storybook-github-pages

Conversation

@gugu

@gugu gugu commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 5, 2026 11:11
@gugu gugu enabled auto-merge (squash) March 5, 2026 11:11

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

Adds a dedicated GitHub Actions workflow to build the frontend Storybook static site and deploy it to GitHub Pages on pushes to main (and via manual dispatch).

Changes:

  • Introduces a storybook.yml workflow triggered on push to main and workflow_dispatch
  • Builds Storybook from frontend/ and uploads frontend/storybook-static as a Pages artifact
  • Deploys the uploaded artifact to the github-pages environment using actions/deploy-pages

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +9 to +12
permissions:
contents: read
pages: write
id-token: write

Copilot AI Mar 5, 2026

Copy link

Choose a reason for hiding this comment

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

Workflow-level permissions grants pages: write and id-token: write to the build job, even though only the deploy job needs to publish to Pages. This increases the blast radius if a dependency/script in the build step is compromised. Consider reducing the top-level permissions to the minimum (e.g., contents: read) and setting pages: write + id-token: write only on the deploy job (or even just the single deployment step) via job-level permissions:.

Copilot uses AI. Check for mistakes.
@gugu gugu merged commit 06191be into main Mar 5, 2026
21 of 23 checks passed
@gugu gugu deleted the feature/storybook-github-pages branch March 5, 2026 11:25
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.

2 participants