Files
qingjian/.github/workflows/docs.yml
T
yenharvey ed156c64fd CI:三平台 job、actions 钉 commit、--locked、最小权限、发版门禁(标签在 main 上、数据按 SHA256SUMS 校验)、Dependabot + cargo audit;钩子加禁装饰性分隔注释与 pre-push 测试
- ci.yml:core(Linux 全量)/ macos(IMK 壳)/ windows(Server、TSF DLL、Settings)三个 job,Windows 代码以前在 Linux 上只是被 cfg 跳过;
  Windows job 设 QINGJIAN_UIACCESS=0(没签名的测试二进制带 uiAccess manifest 起不来,os error 740)
- 第一次在 Windows 上跑测试就抓到一个:TSF 日志的 days_from_civil 把 719468 加成了减,1970-01-01 算成 1438936(只用来比大小,功能没受影响)
- release.yml:secrets 不放顶层 env、有没有配由第一步算成输出;merge-base 门禁;产品数据 SHA256SUMS 校验并记进 build-info.json 的 data_sha256;docs.yml 同样钉 commit、只读权限
- bundle.sh / build.ps1 的 cargo build 加 --locked
- .githooks/pre-commit 拒绝 // ==== 这类只做视觉分组的分隔注释(与 unuvojo-server 同一条规矩),.githooks/pre-push 跑全 workspace 测试
- 正式版前欠的(数据不可变 tag + 锁定、安装包内容验证、cargo deny、fuzz / Miri)记进 todo 与 release.md
2026-09-12 13:05:57 +08:00

29 lines
991 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.
# docs/user 改了就让官网重新构建(它的「文档」页从这里拉):往官网仓库推一个小提交,Cloudflare 见到提交就构建。
# 需要 Secret QINGJIAN_WEB_TOKEN,见 release.yml。
name: docs
on:
push:
branches: [main]
paths: ['docs/user/**']
# 手动触发:想让官网现在就重建时在 Actions 页点一下(或 gh workflow run docs.yml)
workflow_dispatch:
permissions:
contents: read
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Trigger website build
env:
# 没配 token 时脚本自己跳过(secrets 不能写在 if 里)
QINGJIAN_WEB_TOKEN: ${{ secrets.QINGJIAN_WEB_TOKEN }}
run: |
if [[ -z "$QINGJIAN_WEB_TOKEN" ]]; then echo "没配 QINGJIAN_WEB_TOKEN,跳过"; exit 0; fi
tools/release/bump-website.sh docs