From 3ed8be2b4b3a6bac48a7bdd1de3175297c49288e Mon Sep 17 00:00:00 2001 From: imagine10255 Date: Mon, 28 Oct 2024 00:22:20 +0800 Subject: [PATCH] fix github action yml --- .github/workflows/deploy.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6b6e7fd..1de3434 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,13 +36,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=bear-react-carousel-storybook --branch main + - name: Build Storybook & Deploy to Cloudflare Pages + run: yarn pages:deploy env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}