Files
build-go/action.yml
T
2026-11-05 02:54:21 +00:00

19 lines
946 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.
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