docs: annotate Foundry source and deployment lifecycle in Chinese [skip ci]
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# 仅 main 的相关路径变更触发发布;工作分支验证不应运行此生产切换。
|
||||
name: Deploy Foundry Core
|
||||
on:
|
||||
push:
|
||||
@@ -11,6 +12,7 @@ on:
|
||||
- 'db/**'
|
||||
- '.gitea/workflows/deploy.yml'
|
||||
|
||||
# 发布串行排队且不取消正在进行的路由/数据库操作。
|
||||
concurrency:
|
||||
group: foundry-core-main-deploy
|
||||
cancel-in-progress: false
|
||||
@@ -26,12 +28,14 @@ jobs:
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: false
|
||||
# 在远程 runner 生成无 CGO 二进制,供只读 slim 容器执行。
|
||||
- name: Verify and build
|
||||
run: |
|
||||
set -eu
|
||||
test -z "$(gofmt -l cmd internal)"
|
||||
go test -mod=readonly ./...
|
||||
CGO_ENABLED=0 go build -mod=readonly -o bin/foundry ./cmd/foundry
|
||||
# secrets 仅注入进程环境,项目/引导 JSON 来自 Actions Variables,release 再检查内容。
|
||||
- name: Deploy and verify backend readiness
|
||||
env:
|
||||
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
|
||||
|
||||
Reference in New Issue
Block a user