Skip to content

Commit 83d9cd6

Browse files
committed
update goreleaser
1 parent 8d1f98c commit 83d9cd6

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

‎.goreleaser.yml‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
project_name: gitleaks
24

35
builds:
@@ -15,17 +17,26 @@ builds:
1517
goarm:
1618
- "6"
1719
- "7"
20+
ignore:
21+
- goos: windows
22+
goarch: arm
1823
tags:
1924
- gore2regex
2025
ldflags:
2126
- -s -w -X=github.com/zricethezav/gitleaks/v8/version.Version={{.Version}}
2227
archives:
23-
- builds: [gitleaks]
28+
- ids: [gitleaks]
29+
name_template: >-
30+
{{ .ProjectName }}_
31+
{{- .Version }}_
32+
{{- .Os }}_
33+
{{- if eq .Arch "amd64" }}x64
34+
{{- else if eq .Arch "386" }}x32
35+
{{- else }}{{ .Arch }}{{ end }}
36+
{{- with .Arm }}v{{ . }}{{ end }}
2437
format_overrides:
2538
- goos: windows
26-
format: zip
27-
replacements:
28-
amd64: x64
29-
386: x32
39+
formats: [zip]
3040
release:
3141
prerelease: true
42+

0 commit comments

Comments
 (0)