Skip to content

Commit

Permalink
deploy storybook (#3)
Browse files Browse the repository at this point in the history
* deploy storybook

* temp run on branch

* use secrets

* fix yaml

* go

* go
  • Loading branch information
enkoder authored Dec 3, 2023
1 parent 53994e0 commit e69b655
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 30 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-storybook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Storybook
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: ["18.x"]

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build & Deploy Storybook
run: pnpm -r build-storybook && pnpm exec wrangler pages deploy --project-name beanstalk-storybook ./app/storybook-static
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
30 changes: 0 additions & 30 deletions app/src/stories/Sidebar.stories.ts

This file was deleted.

0 comments on commit e69b655

Please sign in to comment.