File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 22
22
with :
23
23
version : v1.26.2
24
24
args : release --clean --snapshot --skip=publish
25
- env :
26
- GOFLAGS : ${{ (github.ref_type == 'tag' && contains(github.ref_name, '-')) && '-gcflags="all=-N -l"' || '' }}
Original file line number Diff line number Diff line change 24
24
version : v1.26.2
25
25
args : release --clean
26
26
env :
27
- GOFLAGS : ${{ (github.ref_type == 'tag' && contains(github.ref_name, '-')) && '-gcflags="all=-N -l"' || '' }}
28
27
GITHUB_TOKEN : ${{ secrets.RELEASE_USER_TOKEN }}
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ builds:
11
11
main : main.go
12
12
env :
13
13
- CGO_ENABLED=0
14
+ gcflags :
15
+ - ' {{- if (contains .Tag "-") -}}all=-N -l{{- end -}}'
14
16
ldflags :
15
17
- -s -w -X github.com/mittwald/mittnite/cmd.Version={{ .Version }} -X github.com/mittwald/mittnite/cmd.Commit={{ .Commit }} -X github.com/mittwald/mittnite/cmd.BuiltAt={{ .Date }}
16
18
goos :
You can’t perform that action at this time.
0 commit comments