mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-19 12:50:51 +08:00
build(goreleaser): inject build metadata into binary during release
This commit is contained in:
@@ -10,7 +10,10 @@ builds:
|
|||||||
main: ./cmd/server/
|
main: ./cmd/server/
|
||||||
binary: cli-proxy-api
|
binary: cli-proxy-api
|
||||||
ldflags:
|
ldflags:
|
||||||
- -X 'main.Version={{.Env.GORELEASER_CURRENT_TAG}}'
|
- -s -w
|
||||||
|
- -X 'main.Version={{.Version}}'
|
||||||
|
- -X 'main.Commit={{.ShortCommit}}'
|
||||||
|
- -X 'main.BuildDate={{.Date}}'
|
||||||
archives:
|
archives:
|
||||||
- id: "cli-proxy-api"
|
- id: "cli-proxy-api"
|
||||||
format: tar.gz
|
format: tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user