初始版本:從 feather-vault 搬出
ci / test (push) Successful in 1m20s

This commit is contained in:
bot
2026-11-05 02:54:22 +00:00
commit 54ce2dc727
11 changed files with 412 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
name: release
description: "發佈流程的小步驟(Docker action,bash+git+curl):resolve-channel 依 PR 的來源與目標分支判斷通道、next-version 算下一版、deploy-version 取得要部署的版本。分支名稱、版本、token 都由呼叫端傳入。需要 actions/checkout(next-version、deploy-version 要 fetch-depth: 0)"
inputs:
task:
description: "resolve-channel、next-version、deploy-version"
required: true
branch:
description: "resolve-channel:PR 的來源分支名稱(例如 github.head_ref)"
default: ""
base_branch:
description: "resolve-channel:PR 的目標分支名稱(例如 github.base_ref)"
default: ""
main_branch:
description: "resolve-channel:正式分支名稱(例如 main)"
default: ""
dev_branch:
description: "resolve-channel:測試分支名稱(例如 dev)"
default: ""
channel:
description: "next-version、deploy-version:release、dev 或 none(通常來自 resolve-channel;deploy-version 留空且沒指定版本=取這個提交上的版本標籤)"
default: ""
version:
description: "deploy-version:指定要部署的版本(例如 v0.5.4 或 v0.5.5-dev.2),有值就直接使用"
default: ""
package:
description: "next-version、deploy-version:Go 套件庫查詢的套件名稱(預設是儲存庫名稱)"
default: ""
docs_pattern:
description: "next-version:只動這些檔案就不發佈的 egrep 規則(預設 ^docs/|\\.md$,即 docs/ 與 *.md)"
default: ""
token:
description: "next-version、deploy-version:查詢 Go 套件庫版本的權杖(需要 read:package)"
default: ""
outputs:
channel:
description: "resolve-channel:release、dev 或 none"
version:
description: "next-version:下一版;deploy-version:要部署的版本(沒有時是空字串)"
skip:
description: "next-version:true 表示只動文件,不發佈;deploy-version:true 表示沒有版本可部署"
sha:
description: "deploy-version:這次部署對應的提交(用來抓同一個提交的部署腳本)"
runs:
using: docker
image: Dockerfile
args:
- ${{ inputs.task }}