File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 3131
3232 - name : Delete non-semver tags
3333 run : ' git tag -d $(git tag -l | grep -v "^v")'
34+
35+ - name : Set LDFLAGS
36+ run : echo LDFLAGS="$(make ldflags)" >> $GITHUB_ENV
3437
3538 - name : Run GoReleaser on tag
3639 if : github.event_name != 'pull_request'
Original file line number Diff line number Diff line change 11/_build /
2+ /dist /
23/_tools /
34/vendor /
45/.kcp.e2e /
Original file line number Diff line number Diff line change 1+ builds :
2+ - id : " api-syncagent"
3+ main : ./cmd/api-syncagent
4+ binary : api-syncagent
5+ ldflags :
6+ - " {{ .Env.LDFLAGS }}"
7+ goos :
8+ - linux
9+ - darwin
10+ goarch :
11+ - amd64
12+ - arm64
13+ env :
14+ - CGO_ENABLED=0
15+
16+ archives :
17+ - id : api-syncagent
18+ builds :
19+ - api-syncagent
20+
21+ release :
22+ draft : true
23+ mode : keep-existing
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ GOOS ?= $(shell go env GOOS)
3030.PHONY : all
3131all : build test
3232
33+ ldflags :
34+ @echo $(LDFLAGS )
35+
3336.PHONY : build
3437build : $(CMD )
3538
You can’t perform that action at this time.
0 commit comments