From 1cd89eaa54ea035aa973da2d9a8e8b890a6901fa Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 9 Sep 2025 13:16:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=B0=E5=A2=9E=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-docs.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 2f1dac164..f9d0725d1 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -37,11 +37,20 @@ jobs: working-directory: ./docs - name: Build documentation + # 确保这里最终执行的是 next build(且 next.config 已 output: 'export') run: bun run build working-directory: ./docs + - name: Assert static output exists + run: | + test -f ./docs/out/index.html || (echo "❌ ./docs/out/index.html 不存在:请检查 next.config 的 output:'export' / basePath 配置" && exit 1) + echo "✅ Found ./docs/out/index.html" + find ./docs/out -maxdepth 2 -type f | head -n 30 + - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages folder: ./docs/out + clean: true + cname: docs.open-isle.com