Skip to content

Commit

Permalink
ci: deploy storybook to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed Jun 7, 2024
1 parent d5e5611 commit 07811f6
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy Storybook

# TODO: Run only for main branch
on: [push]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install dependencies
run: npm ci
- name: Build storybook
run: npm run build:storybook
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: storybook-static
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit 07811f6

Please sign in to comment.