Skip to content

Commit

Permalink
github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
michellbrito committed Nov 4, 2024
1 parent 578f35e commit 39878f0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Storybook to GitHub Pages

on:
push:
branches:
- main # Change this to the branch you want to trigger the deployment

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: npm install

- name: Build Storybook
run: npm run build-storybook

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static

0 comments on commit 39878f0

Please sign in to comment.