Revert "Update deploy-docs.yml"

This reverts commit 4428e06f1d.
This commit is contained in:
tim
2025-09-09 13:10:46 +08:00
parent 4428e06f1d
commit 1d2e7eb96e

View File

@@ -21,7 +21,7 @@ jobs:
fetch-depth: 1
- name: Log build
run: echo "Running documentation deployment from build ${{ inputs['build-id'] || 'manual' }}"
run: echo "Running documentation deployment from build ${{ inputs.build-id }}"
- name: Setup Bun
uses: oven-sh/setup-bun@v1
@@ -36,27 +36,12 @@ jobs:
run: bun run generate
working-directory: ./docs
- name: Build documentation (Next export)
- name: Build documentation
run: bun run build
working-directory: ./docs
# 确保你的 package.json 的 build 最终会生成 ./docs/out
# 对于 Next需要包含 next export若没有可在这里追加一行
# run: bun run build && bunx next export
- name: Add .nojekyll & CNAME into publish dir
run: |
test -d ./docs/out || (echo "❌ ./docs/out not found. Did build/export run?" && exit 1)
touch ./docs/out/.nojekyll
echo "docs.open-isle.com" > ./docs/out/CNAME
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./docs/out
clean: true
single-commit: true
git-config-name: github-actions[bot]
git-config-email: github-actions[bot]@users.noreply.github.com
# 也可以不写上面的 CNAME 步骤,改用这一行由 Action 生成:
# cname: docs.open-isle.com