Skip to content

Commit

Permalink
feat: Deploy Storybook as documentation site (#26) (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Eyton-Williams <[email protected]>
  • Loading branch information
Sembauke and ojeytonwilliams authored Apr 5, 2024
1 parent 2bb2c45 commit 0cb840a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Storybook to GitHub Pages
on:
push:
branches: [main]
jobs:
publish:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: true

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

- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
folder: storybook-static

0 comments on commit 0cb840a

Please sign in to comment.