mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-11 05:07:28 +08:00
fix: 新增检查
This commit is contained in:
9
.github/workflows/deploy-docs.yml
vendored
9
.github/workflows/deploy-docs.yml
vendored
@@ -37,11 +37,20 @@ jobs:
|
|||||||
working-directory: ./docs
|
working-directory: ./docs
|
||||||
|
|
||||||
- name: Build documentation
|
- name: Build documentation
|
||||||
|
# 确保这里最终执行的是 next build(且 next.config 已 output: 'export')
|
||||||
run: bun run build
|
run: bun run build
|
||||||
working-directory: ./docs
|
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
|
- name: Deploy to GitHub Pages
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: ./docs/out
|
folder: ./docs/out
|
||||||
|
clean: true
|
||||||
|
cname: docs.open-isle.com
|
||||||
|
|||||||
Reference in New Issue
Block a user