Skip to content

Commit

Permalink
fix github action yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imagine10255 committed Oct 27, 2024
1 parent fd9d944 commit 47c3bae
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 25 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy Storybook to Pages

on:
push:
branches:
- storybook
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

Expand Down Expand Up @@ -31,13 +33,7 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Build Storybook
run: yarn build-storybook

- name: Install Wrangler
run: yarn global add wrangler

- name: Deploy to Cloudflare Pages
run: wrangler pages deploy ./storybook-static --project-name=acrool-react-skeleton --branch main
- name: Build Storybook & Deploy to Cloudflare Pages
run: yarn pages:deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2 changes: 1 addition & 1 deletion example/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { StorybookConfig } from "@storybook/react-vite";

const config: StorybookConfig = {
stories: ['../src/components/**/*.mdx', '../src/components/**/*.stories.@(ts|tsx)'],
staticDirs: ['../../public'],
staticDirs: ['../public'],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-links",
Expand Down
15 changes: 0 additions & 15 deletions example/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion play-in-example-button.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file removed public/.gitkeep
Empty file.

0 comments on commit 47c3bae

Please sign in to comment.