chore(repo): 规范仓库化 —— 从项目目录移到独立仓

原先把规范放在 /srv/aiball/ci/standards/ 是分类错误:规范是跨仓的
(Weknora 三个仓 + aiball),却挂在单个项目(AI球)的目录下,
Weknora 侧的 AGENTS.md 要引用一个 aiball 路径,读起来就是错的。

改法:正本移到独立仓 ~/eng-standards(Gitea 远端 zheromiku/eng-standards
待本人网页创建),文档内 4 处旧路径引用一并更新,并补 .gitignore。

验证:git status 干净;grep 文档已无旧路径;提交信息闸门(~/.githooks/commit-msg)放行。
This commit is contained in:
姚章浩
2026-10-10 14:28:21 +08:00
commit 082afcf673
11 changed files with 1625 additions and 0 deletions
+101
View File
@@ -0,0 +1,101 @@
# templates/ —— 可直接落仓的骨架
> 每个文件都替换掉附件原稿的 GitLab 口径;改法见 `../04-模板评估与修正.md`。
> ⚠️ 复制到仓库后**不要就地重写**:`ci_gate.py` / `ci_report.py` 请从已验证的仓库**逐字节复制**
> (`Weknora/knowledge-governance/.gitea/scripts/` 或 `/srv/aiball/ci/attach/`)。
| 文件 | 落仓位置 | 说明 |
|---|---|---|
| `gitea-build.yml` | `.gitea/workflows/build.yml` | 提交触发的校验+编译+预览+上报;`deploy:test` 是待填骨架 |
| `gitea-prod-deploy.yml` | `.gitea/workflows/deploy-production.yml` | **生产发布唯一入口**,只 `workflow_dispatch`,不构建 |
| `gitignore` | `.gitignore` | 去掉原稿自相矛盾的 `!src/secrets/` 例外 |
| `commit-msg` | `~/.githooks/commit-msg` | 本机提交闸门;规则必须与 `ci_gate.py` 一致 |
| `AGENTS.md` 骨架 | `AGENTS.md` | 见下(agent 指令文件有写入保护,故内联在此) |
| —— 随仓携带 | `.gitea/scripts/ci_gate.py`<br>`.gitea/scripts/ci_report.py` | **逐字节复制已验证版本**,不要重写 |
## 落仓后的自检(反向自检,规范 §3.2-3)
```bash
# 1) 故意违规的提交必须被闸门拦住,且 build 不跑
git commit -F - <<'EOF'
update stuff
EOF
# 判据:本地 hook 报 ❌;push 后 CI 的 gate 红、build 未执行
# 2) 合规提交必须过(正例对照:证明不是"永远红")
git commit -F - <<'EOF'
ci(deploy): 接入 Gitea Actions 生产发布 workflow
生产发布改成独立 workflow(只 workflow_dispatch),避免塞进 push 流水线;
concurrency 明确 cancel-in-progress: false —— 取消不是回滚。
验证:手动发起一次,confirm 不匹配时 guard 作业必须红。
EOF
# 3) 产物地址每个都要 200
curl -m 5 -o /dev/null -w '%{http_code}\n' http://192.168.50.134:8899/healthz
curl -m 5 -o /dev/null -w '%{http_code}\n' http://100.92.49.78:8899/healthz
```
## `AGENTS.md` 骨架(复制到仓库根,按本工程改写 TODO)
````markdown
# AGENTS.md — 给在 <PROJECT> 里干活的 AI 代理
> 这是**操作手册**,不是给用户看的介绍。改代码前先读「硬约束」与「已知陷阱」。
>
> **系统级规范(本机所有 Gitea 仓库都适用)**:仓库 `zheromiku/eng-standards`(本机工作副本 `~/eng-standards/`)
> —— `01-规范-Git与CI-CD(Gitea版).md`(正本)+ `02-流程说明与Runbook.md`。
> 做 git / 提交 / CI / 发布 / 回滚 / 密钥 这些事之前先读它;本文件只写**本工程特有**的东西。
## 0. 这个工程是什么
<PROJECT>(一句话说清做什么、给谁用、部署在哪)。
## 1. 硬约束(违反其中任何一条,这次改动就不合格)
1. TODO:不许改变对外可观测行为(接口、报文、退出码、配置语义)
2. TODO:本工程最硬的那条证据是什么(对拍 / 契约 / 字节一致 / 快照)
3. **同一含义的代码只准有一份**(禁止同义复制)
4. **注释写"为什么"**,不写"是什么"
5. 提交按"一件事一个提交",conventional commits,正文用中文,标题 ≤72 字符
6. **生产使用测试验收过的同一份构建产物**(同 sha / 同镜像 ID)—— 不许在生产机上另行 build
## 2. 本地验证闭环(提交前的最低要求)
```bash
make check # 或 npm run verify —— 一条命令跑完本地门禁;跳过项会显式警告"不算全绿"
```
- 门禁**串行**、失败即停:构建会清空产物目录,而端到端测的是构建产物 —— 并行会制造假失败。
- 改到部署脚本或产物形状时,必须另外跑一次真实的装配/启动自检。
## 3. CI 闭环
```bash
giteactl runs <ns>/<repo> # 最近运行
giteactl logs <ns>/<repo> <runId> # 作业日志
python3 ~/.hermes/scripts/gitea_api.py GET "/api/v1/repos/<ns>/<repo>/actions/tasks?limit=5"
```
- 失败时**先读日志再改代码**;追到第一处 `❌`。
- `status=pending` 且 `status_count=0` **不是**失败(那是"没有配置任何状态检查")。
- run 一直 `queued` ⇒ 先查**本仓库有没有自己的 Runner**,别怀疑工作流。
- 合并读回:`GET /pulls/{n}` → `state=closed` + `merged=true` + `merge_commit_sha` 非空。
⚠️ 合并接口成功时可能返回**空 body** → **永不重试**,改读回。
## 4. 已知陷阱(索引)
全文在 `docs/agents/traps.md`。**只追加、不重排、不复用旧号**;编号会被代码注释与测试引用。
⚠️ 新增陷阱要改两处(traps.md 加全文 + 这张表加一行)。
| # | 一句话 | 全文 |
| --- | ------ | ---- |
| 1 | TODO | [读](docs/agents/traps.md#trap-1) |
## 5. 提交与推送
- conventional commits,正文中文,**说清"为什么"**;一件事一个提交。
- 提交信息不要用反引号 / `$()`(会触发命令替换):用 `git commit -F -` + heredoc。
- 推之前跑完第 2 节;推送后用第 3 节确认流水线,失败就**先读 trace 再改代码**。
- 生产发布**不走 push**:它是独立的 `deploy-production` workflow,只由人手动发起(见规范 §5.2)。
````
+65
View File
@@ -0,0 +1,65 @@
#!/usr/bin/env bash
# Conventional Commits 提交信息校验闸门(本机 hook)
# 安装:cp templates/commit-msg ~/.githooks/commit-msg && chmod +x ~/.githooks/commit-msg
# git config --global core.hooksPath ~/.githooks
# 绕过:git commit --no-verify(不建议);CI 侧 .gitea/scripts/ci_gate.py 会再拦一次,绕不过。
# 规则必须与 .gitea/scripts/ci_gate.py 完全一致 —— 两处不一致 = 本地绿、CI 红(或反之)。
set -uo pipefail
msg_file="${1:-}"
[ -n "$msg_file" ] || { echo "commit-msg: 缺少提交信息文件参数" >&2; exit 1; }
[ -f "$msg_file" ] || exit 0
# 取第一条非注释行作为标题
subject_line=""
while IFS= read -r line; do
case "$line" in ''|'#'*) continue ;; esac
subject_line="$line"; break
done < "$msg_file"
[ -n "$subject_line" ] || exit 0
# 放行自动生成的提交
case "$subject_line" in
Merge\ *|Revert\ \"*|fixup!\ *|squash!\ *|amend!\ *) exit 0 ;;
esac
TYPES="feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert"
RE='^('"$TYPES"')(\([a-zA-Z0-9._/-]+\))?!?: .{3,}$'
fail() {
cat >&2 <<EOF
❌ 提交信息不合规,已拦截。
你写的 : $subject_line
原因 : $1
规范 : <类型>(<范围>): <简短描述>
类型 : feat 新功能 | fix 修缺陷 | docs 文档 | style 格式(不改逻辑)
refactor 重构 | perf 性能 | test 测试 | build 构建/依赖
ci CI 配置 | chore 杂务 | revert 回滚
范围 : 可选,小写,如 (card) (weknora) (deploy)
正确示例
feat(asset): 新增按歌曲生成应援序列
fix(parser): 修复表格解析越界导致的 500
ci: 接入 Gitea Actions 自动编译
要点
· 类型小写,冒号后必须有一个空格,描述 ≥3 个字符
· 标题 ≤72 字符,结尾不要加句号
· 说明「为什么」写正文(空一行后),一行一件事
· 破坏性变更:类型后加 !,并在正文写 BREAKING CHANGE: 说明
· ⚠️ 正文不要直接在 -m 里写反引号 / \$()(会被 shell 先执行):
git commit -F - <<'EOF'
临时绕过(不推荐,CI 仍会拦截): git commit --no-verify
EOF
exit 1
}
[ ${#subject_line} -le 72 ] || fail "标题 ${#subject_line} 字符 > 72"
case "$subject_line" in
*. | *。) fail "标题结尾不要加句号" ;;
esac
printf '%s' "$subject_line" | grep -Eq "$RE" || fail "不符合 <类型>(<范围>): <描述>"
+192
View File
@@ -0,0 +1,192 @@
# <PROJECT> —— 提交触发的 CI(Gitea Actions)
# 来自 zheromiku/eng-standards 的 templates/gitea-build.yml;正本见 01-规范-Git与CI-CD(Gitea版).md §4
#
# ⚠️ 四处形状不许动(动了会被规范判为不合规):
# · 触发只有三类入口:推任意分支(校验+编译,不部署)、推 main(+自动部署测试环境)、workflow_dispatch
# · 提交信息闸门(gate)必须在编译之前
# · 生产部署**不在这里** —— 它是独立的 prod-deploy.yml,只由 workflow_dispatch 触发(§5.2)
# · 不用第三方 action(`uses:`)—— 本 runner 取不到就随机红;全部逻辑写在 run: 里
#
# ⚠️ 本 runner 实测特性(act 语义,见正本 §4.4):
# · act_runner 不会自动检出代码 ⇒ 必须自己 git init + fetch + checkout
# · 每步以 `bash -e -o pipefail` 执行 ⇒ 禁止 `cmd | head`(SIGPIPE 假红)
# · 工具链来自主机只读挂载:容器内 /opt/citools;可写缓存 /opt/citools-cache
name: build
on:
push:
branches:
- "**"
workflow_dispatch:
env:
BRIDGE_URL: ${{ vars.CI_BRIDGE_URL }}
BRIDGE_TOKEN: ${{ secrets.CI_BRIDGE_TOKEN }}
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LANG: C.UTF-8
LC_ALL: C.UTF-8
# 同一 ref 的新推送取消旧的**校验/编译**运行(注意:生产部署 workflow 不许这么设,见 §5.4)
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
gate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 检出代码
run: |
set -uo pipefail
SERVER="${GITHUB_SERVER_URL:-http://192.168.50.223:3000}"
HOSTPORT="${SERVER#*://}"
BRANCH="${GITHUB_REF_NAME:-${GITHUB_REF#refs/heads/}}"
cd "${GITHUB_WORKSPACE:-$(pwd)}"
rm -rf ./* .git 2>/dev/null || true
git init -q .
git remote add origin "http://x-access-token:${GIT_TOKEN}@${HOSTPORT}/${GITHUB_REPOSITORY}.git"
git fetch -q --depth 50 origin "$BRANCH"
git checkout -q -B "$BRANCH" FETCH_HEAD
echo "已检出 ${GITHUB_REPOSITORY} 分支 ${BRANCH}"
git log -1 --format=' %h %an %s'
- name: 提交信息规范校验(权威闸门,失败不编译)
run: python3 .gitea/scripts/ci_gate.py
build:
needs: [gate]
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- name: 检出代码
run: |
set -uo pipefail
SERVER="${GITHUB_SERVER_URL:-http://192.168.50.223:3000}"
HOSTPORT="${SERVER#*://}"
BRANCH="${GITHUB_REF_NAME:-${GITHUB_REF#refs/heads/}}"
cd "${GITHUB_WORKSPACE:-$(pwd)}"
rm -rf ./* .git 2>/dev/null || true
git init -q .
git remote add origin "http://x-access-token:${GIT_TOKEN}@${HOSTPORT}/${GITHUB_REPOSITORY}.git"
git fetch -q --depth 50 origin "$BRANCH"
git checkout -q -B "$BRANCH" FETCH_HEAD
git rev-parse HEAD > /tmp/ci-sha
git rev-parse --short=12 HEAD > /tmp/ci-sha12
date +%s > /tmp/ci-start
: > /tmp/ci-preview-url
echo skipped > /tmp/ci-build-status
echo skipped > /tmp/ci-gate-status
git rev-list --count FETCH_HEAD > /tmp/ci-commits-count 2>/dev/null || echo 1 > /tmp/ci-commits-count
- name: 编译与自检
run: |
set +e; set +o pipefail
LOG=/tmp/ci-build.log; : > "$LOG"
run() { echo "-- $* --"; "$@" 2>&1 | tee -a "$LOG"; return "${PIPESTATUS[0]}"; }
runin() { local d="$1"; shift; echo "-- ($d) $* --"; ( cd "$d" && "$@" ) 2>&1 | tee -a "$LOG"; return "${PIPESTATUS[0]}"; }
export PATH=/opt/citools/go/bin:/opt/citools/bin:$PATH
export GOCACHE=/opt/citools-cache/gocache GOMODCACHE=/opt/citools-cache/gomod
export UV_CACHE_DIR=/opt/citools-cache/uv GOPATH=/opt/citools-cache/gopath
export GOPROXY=https://goproxy.cn,direct GOTOOLCHAIN=local GOFLAGS=-mod=mod
mkdir -p "$GOCACHE" "$GOMODCACHE" "$UV_CACHE_DIR" "$GOPATH" 2>/dev/null
echo "工具链: $(go version 2>&1) | $(uv --version 2>&1) | $(node -v 2>&1) | $(python3 -V 2>&1)"
fail=0; ran=""
if [ -f go.mod ]; then
ran="$ran go"
run go build ./... || fail=1
run go vet ./... || fail=1
run go test ./... || fail=1
fi
if [ -f pyproject.toml ] || [ -f requirements.txt ] || [ -f setup.py ]; then
ran="$ran python"
if grep -qE '^check:' Makefile 2>/dev/null; then
run make UV=uv check || fail=1
else
run uv sync || fail=1
run uv run pytest -q || fail=1
fi
fi
WEBPKG=""
for p in package.json web/package.json frontend/package.json ui/package.json; do
if [ -f "$p" ]; then WEBPKG="$p"; break; fi
done
if [ -n "$WEBPKG" ]; then
ran="$ran node"; D="$(dirname "$WEBPKG")"
if [ -f "$D/package-lock.json" ]; then runin "$D" npm ci || fail=1; else runin "$D" npm install || fail=1; fi
if grep -q '"build"[[:space:]]*:' "$WEBPKG" 2>/dev/null; then runin "$D" npm run build || fail=1; fi
fi
if [ -z "$ran" ] && [ -f Makefile ]; then ran="$ran make"; run make || fail=1; fi
if [ -z "$ran" ]; then echo "未识别到构建入口(go.mod / pyproject.toml / package.json / Makefile 都没有),跳过编译"; fi
if [ "$fail" -eq 0 ]; then echo success > /tmp/ci-build-status; else echo failure > /tmp/ci-build-status; fi
tail -c 4000 "$LOG" > /tmp/ci-build-tail
echo "构建结果: $(cat /tmp/ci-build-status)(识别:$ran)"
[ "$fail" -eq 0 ] || exit 1
- name: 发布网页预览
if: always()
run: |
set +e; set +o pipefail
: > /tmp/ci-preview-url
if [ "$(cat /tmp/ci-build-status 2>/dev/null)" != "success" ]; then
echo "构建未成功,跳过预览发布"; exit 0
fi
WEB=""
for d in web/dist dist build out public web/build frontend/dist; do
if [ -f "$d/index.html" ]; then WEB="$d"; break; fi
done
if [ -z "$WEB" ]; then echo "未发现静态网页产物目录,跳过预览发布"; exit 0; fi
# ⚠️ 不要在打包时产生 `.` 根成员:先 cd 再只打目录内容(正本 §4.7)
tar -czf /tmp/ci-web.tgz -C "$WEB" . || { echo "打包失败"; exit 0; }
B="${BRIDGE_URL:-}"
for cand in "$B" "http://172.17.0.1:8899" "http://192.168.50.134:8899" "http://100.92.49.78:8899"; do
if [ -n "$cand" ]; then curl -s -m 5 -o /dev/null "$cand/healthz" && { B="$cand"; break; }; fi
done
SHA="$(cat /tmp/ci-sha)"
echo "发布预览到 $B(产物目录 $WEB)"
curl -sS -m 90 -X POST "$B/api/ci/publish?repo=${GITHUB_REPOSITORY}&sha=${SHA}" \
-H "X-CI-Token: ${BRIDGE_TOKEN}" -H 'Content-Type: application/gzip' \
--data-binary @/tmp/ci-web.tgz -o /tmp/ci-pub.json
cat /tmp/ci-pub.json; echo
URL="$(python3 -c "import json;print(json.load(open('/tmp/ci-pub.json')).get('url',''))" 2>/dev/null)"
if [ -n "$URL" ]; then echo "$URL" > /tmp/ci-preview-url; echo "网页预览: $URL"; fi
- name: 上报 ci-bridge(通知 + 报告)
if: always()
run: |
set +e; set +o pipefail
B="${BRIDGE_URL:-}"
for cand in "$B" "http://172.17.0.1:8899" "http://192.168.50.134:8899" "http://100.92.49.78:8899"; do
if [ -n "$cand" ]; then curl -s -m 5 -o /dev/null "$cand/healthz" && { B="$cand"; break; }; fi
done
echo "使用 ci-bridge: $B"
S=$(date +%s); T=$(cat /tmp/ci-start 2>/dev/null); [ -n "$T" ] || T=$S
echo $((S - T)) > /tmp/ci-duration
CI_BRIDGE_RESOLVED="$B" python3 .gitea/scripts/ci_report.py
# ─────────────────────────────────────────────────────────────────────────
# 测试环境部署:只在推 main 时自动跑(正本 §4.6)
# TODO:本作业只是骨架。填 <TEST_HOST> 与下面的读回断言后再启用。
# 发布**必须**是"构建一次、两个环境部署同一份产物"(正本 §5.1)—— 见 prod-deploy.yml 的注释。
# ─────────────────────────────────────────────────────────────────────────
deploy:test:
needs: [gate, build]
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: deploy-test
cancel-in-progress: false
steps:
- name: 占位(未启用)
run: |
echo "TODO: ① 取本次构建产物(按 sha12 寻址)② 校验 tar_sha256 ③ scp 到测试机"
echo " ④ docker load → 断言 image_id == release-<sha12>.json"
echo " ⑤ 切镜像 → 读回 healthz / version / env"
echo " ⑥ /version.commit_sha 必须 == $(cat /tmp/ci-sha12 2>/dev/null || echo '<sha12>')"
echo " 见正本 §5.1 证据链表与 02-流程说明与Runbook.md §C"
+96
View File
@@ -0,0 +1,96 @@
# <PROJECT> —— 生产发布(Gitea Actions,**只由人工发起**)
# 正本见 01-规范-Git与CI-CD(Gitea版).md §5
#
# ⚠️ 这个文件是"生产发布"的**唯一入口**。四条不许动的形状:
# 1. 触发**只有** workflow_dispatch —— 不存在任何自动触发路径(§4.1)
# 2. 必填 sha + confirm,第一步就校验,不合法直接红(§5.2 第二层)
# 3. concurrency.cancel-in-progress **必须** false —— 取消不是回滚,会留下换了一半的镜像(§5.4)
# 4. **不构建**。只搬运"测试验收过的那一份产物"(同 tar_sha256 / 同 image_id,§5.1)
#
# 人工确认三层(§5.2):
# 第一层 平台:本 workflow 只能手动发起
# 第二层 参数:confirm 必须等于字面量 deploy-production
# 第三层 人:最后一步"切镜像"由本人在生产机执行(或本人确认脚本输出)
name: deploy-production
on:
workflow_dispatch:
inputs:
sha:
description: '要发布的短 sha(12 位,必须是已在测试环境验收过的那一份)'
required: true
confirm:
description: '确认执行生产发布,请输入字面量 deploy-production'
required: true
note:
description: '发布说明(对应 release issue / 验收记录链接)'
required: false
# ⚠️ 不要 cancel-in-progress
concurrency:
group: deploy-production
cancel-in-progress: false
env:
LANG: C.UTF-8
LC_ALL: C.UTF-8
jobs:
guard:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 人工确认 + 参数校验
run: |
set -eu
SHA="${{ github.event.inputs.sha }}"
CONFIRM="${{ github.event.inputs.confirm }}"
echo "请求发布 sha=$SHA"
[ "$CONFIRM" = "deploy-production" ] || { echo "❌ confirm 不匹配,拒绝执行"; exit 1; }
printf '%s' "$SHA" | grep -Eq '^[0-9a-f]{12}$' || { echo "❌ sha 必须是 12 位小写十六进制"; exit 1; }
echo "$SHA" > /tmp/ci-sha12
echo "✅ 参数合法"
publish:
needs: [guard]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: 取产物并校验(不构建!)
run: |
set -eu
echo "TODO: 从产物托管点取 release-<${{ github.event.inputs.sha }}>.json 与 <repo>-<sha12>.tar"
echo " ① sha256sum <tar> 必须 == 清单 tar_sha256"
echo " ② 清单 sha12 必须 == 输入 sha"
echo " 见 02-流程说明与Runbook.md §D"
- name: 交付到生产机(只传文件,不切镜像)
run: |
set -eu
echo "TODO: scp 到 120.76.218.137:/opt/dobotai/container/incoming/"
echo " ⚠️ 凭据只走 stdin / 文件,绝不进命令行参数(会进 ps)"
echo " ⚠️ ssh 是非交互 shell,不读 /etc/profile:远端命令要显式补 PATH"
- name: 输出给本人的"下一步"(第三层确认在这里)
run: |
cat <<'EOF'
✅ 产物已送达生产机。**最后一步由本人在生产机执行**:
exec 9>/var/lock/dobotai-deploy.lock
flock -n 9 || { echo "另一个部署正在进行"; exit 1; }
sha256sum /opt/dobotai/container/incoming/<repo>-<sha12>.tar # == 清单 tar_sha256
docker tag <current> <repo>:rollback-<old12>-before-<sha12> # 回滚用
docker load -i /opt/dobotai/container/incoming/<repo>-<sha12>.tar
docker image inspect --format '{{.Id}}' <repo>:sha-<sha12> # == 清单 image_id
# 迁移(若有)必须在切镜像**之前**完成并读回(正本 §5.5)
cd /opt/dobotai/container && docker compose --env-file runtime.env -f compose.yaml \
up -d --no-deps --force-recreate <ctr>
curl -fsS http://127.0.0.1:8090/healthz # {"status":"ok"}
curl -fsS http://127.0.0.1:8090/version # commit_sha == <sha12>
最后的门:**本人在生产机器人上发一条真实消息**,再回读 turns.agent_id。
回滚:bash /opt/dobotai/container/ops/rollback_dobotai_prod.sh
⚠️「取消流水线」不是回滚。
EOF
+34
View File
@@ -0,0 +1,34 @@
# 依赖与构建产物
node_modules/
dist/
bin/
build/
# 运行期数据(唯一不可再生的东西,绝不入库)
data/
secrets/
*.db
*.db-wal
*.db-shm
backups/
# ⚠️ 无斜杠前缀的规则匹配任意层级:`secrets/` 会连 `src/secrets/` 一起忽略。
# 处理办法**不是**加 `!` 例外(例外越加越多,规则本身就没人看得懂了),
# 而是**别在源码路径里用 `dist`/`data`/`secrets` 这些名字**。
# (附件原稿的模板在这里给了 !src/secrets/,与它自己的正本条款矛盾,已删。)
# 发布产物(CI 生成,绝不能入库;产物名带 sha,见正本 §1.4)
runtime/
out/
*.tar.gz
*.tar
version.txt
release-*.json
# 本机与密钥
.DS_Store
*.log
.tmp/
.env
.env.*
!.env.example