Files
patbond-doc/.gitea/workflows/ci.yml
T
2026-09-04 18:25:19 +08:00

32 lines
1.0 KiB
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.
# Gitea Actions 门禁:与 docs/development/git-workflow.md 的本地门禁同一条命令。
# 零外部 action / 零 GitHub 依赖;pip 走腾讯云 PyPI 镜像。
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
docs-build:
runs-on: ubuntu-latest
steps:
- name: Checkout (manual)
run: |
git init -q .
AUTH_URL=$(echo "${{ github.server_url }}" | sed "s#https://#https://oauth2:${{ github.token }}@#")
git remote add origin "$AUTH_URL/${{ github.repository }}.git"
git fetch -q --depth 1 origin "+${{ github.ref }}:refs/ci-head"
git checkout -q refs/ci-head
- name: Install mkdocs
run: |
apt-get update -qq
apt-get install -y -qq --no-install-recommends mkdocs
# 与本地门禁同一命令;exit 0 且零 warning 方可合入(git-workflow.md
- name: Build docs (strict)
run: mkdocs build --strict -d /tmp/site