Files
qqbotsdk/.github/workflows/deploy-docs.yml
T
snowy-yang 6897205f6b feat: GitHub Actions——检测与文档部署落地 GitHub 主仓库
Gitea runner 六轮实跑无法稳定(checkout 间歇失败、镜像工具链不明、
secrets 未生效),转 GitHub 为主仓库:.github/workflows 与 .gitea/
并存,检测流水在 GitHub 上补齐 pytest。部署复用 scripts/deploy_docs.sh
(wrangler Direct Upload,secrets 在 GitHub 仓库配置)。
2026-09-24 20:56:38 +08:00

30 lines
709 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: 部署文档(Cloudflare Pages)
on:
push:
branches: [main]
paths:
- "index.html"
- "_sidebar.md"
- "README.md"
- "docs/**"
- "examples/**"
- "CHANGELOG.md"
- "scripts/deploy_docs.sh"
- ".github/workflows/deploy-docs.yml"
workflow_dispatch:
jobs:
deploy-docs:
name: Cloudflare Pages
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 组装并部署(wrangler Direct Upload)
run: bash scripts/deploy_docs.sh
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}