From 76df011866ee6cbee8ceb58019e27547bf66357d Mon Sep 17 00:00:00 2001 From: RoXoM Date: Sun, 12 Nov 2023 22:17:57 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=A4=84=E7=90=86=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E8=87=B3=20gh-pages=20=E5=90=8E=E7=9A=84=E8=B5=84=E6=BA=90=204?= =?UTF-8?q?04=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-to-gh-pages.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy-to-gh-pages.yml b/.github/workflows/deploy-to-gh-pages.yml index 9e2f751..35fce16 100644 --- a/.github/workflows/deploy-to-gh-pages.yml +++ b/.github/workflows/deploy-to-gh-pages.yml @@ -18,9 +18,13 @@ jobs: with: node-version: 16 - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + # 创建 `.nojekyll` 解决资源 404 的问题, + # 参考相关 issue 和 comment: https://github.com/storybookjs/storybook/issues/21711#issuecomment-1496464011 + # https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ run: | npm ci npm run build-storybook + touch ./storybook-static/.nojekyll - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: