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

This commit is contained in:
bot
2026-11-05 02:54:21 +00:00
commit d5f1bcf7a6
10 changed files with 176 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
name: build-go
description: "建置 Go 模組(Docker action):在本機建版本標籤(不推送)、執行建置前置指令、打包成 Go 模組 zip(放在 workspace 的 dist/go-module)。下一步用 publish-go 上傳。需要 fetch-depth: 0 的 checkout;要工具鏈時呼叫的工作流要有 env: GO_VERSION、NODE_VERSION"
inputs:
version:
description: 要發佈的版本(例如 v0.5.4 或 v0.5.5-dev.2)
required: true
prebuild:
description: "打包前執行的 shell 指令,用來產生不在 git 裡的建置結果(例如 make web worker-embed)"
default: ""
include:
description: "要放進模組 zip 的建置結果路徑(相對於儲存庫根目錄,檔案或目錄,空白或換行分隔),少了任何一個就失敗"
default: ""
outputs:
zip:
description: 模組 zip 的路徑(相對於 workspace),傳給 publish-go
runs:
using: docker
image: Dockerfile