Skip to content

Commit

Permalink
Init gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbaumgertner committed Jan 10, 2025
1 parent f9534c9 commit 6c5ea0e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy Storybook to GitHub Pages

on:
push:
branches:
- main # Change this to your default branch if it's not 'main'

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22" # Use the version of Node.js you need
check-latest: true

- name: Install dependencies
run: npm install
# For Yarn, use: run: yarn install

- name: Build Storybook
run: npm run build-storybook
# For Yarn, use: run: yarn build-storybook

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static # This is the default output directory for Storybook

0 comments on commit 6c5ea0e

Please sign in to comment.