Skip to content

Commit c1b40f7

Browse files
committed
fixed the use of garble
1 parent 2d5cbc7 commit c1b40f7

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.goreleaser.yaml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
1+
version: 2
12
before:
23
hooks:
34
- go mod tidy
45
- go test ./...
56
builds:
6-
- env:
7+
- id: windows
8+
env:
79
- CGO_ENABLED=0
810
goos:
9-
- linux
1011
- windows
12+
flags:
13+
- -trimpath
14+
ldflags:
15+
- -s -w -X github.com/d-led/pathdebug/common.Version={{.Version}}
16+
hooks:
17+
pre:
18+
- go install mvdan.cc/garble@latest
19+
- garble -tiny -literals -seed=random build
20+
- id: non-windows
21+
env:
22+
- CGO_ENABLED=0
23+
goos:
24+
- linux
1125
- darwin
1226
ldflags:
1327
- -s -w -X github.com/d-led/pathdebug/common.Version={{.Version}}
1428

1529
archives:
16-
- format: tar.gz
30+
- formats: [ 'tar.gz' ]
1731
# this name template makes the OS and Arch compatible with the results of uname.
1832
name_template: >-
1933
{{ .ProjectName }}_
@@ -25,11 +39,11 @@ archives:
2539
# use zip for windows archives
2640
format_overrides:
2741
- goos: windows
28-
format: zip
42+
formats: [ 'zip' ]
2943
checksum:
3044
name_template: 'checksums.txt'
3145
snapshot:
32-
name_template: "{{ incpatch .Version }}-next"
46+
version_template: "{{ incpatch .Version }}-next"
3347
changelog:
3448
sort: asc
3549
filters:
@@ -44,7 +58,7 @@ brews:
4458
-
4559
name: pathdebug
4660
homepage: "https://github.com/d-led/pathdebug"
47-
tap:
61+
repository:
4862
owner: d-led
4963
name: homebrew-d-led
5064
commit_author:

0 commit comments

Comments
 (0)