From 83d9cd684c87d95d656c1458ef04895a7f1cbd8e Mon Sep 17 00:00:00 2001 From: Zach <15034943+zricethezav@users.noreply.github.com> Date: Thu, 12 Mar 2026 10:40:37 -0500 Subject: [PATCH] update goreleaser --- .goreleaser.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 573d4c9f..d43d511c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + project_name: gitleaks builds: @@ -15,17 +17,26 @@ builds: goarm: - "6" - "7" + ignore: + - goos: windows + goarch: arm tags: - gore2regex ldflags: - -s -w -X=github.com/zricethezav/gitleaks/v8/version.Version={{.Version}} archives: - - builds: [gitleaks] + - ids: [gitleaks] + name_template: >- + {{ .ProjectName }}_ + {{- .Version }}_ + {{- .Os }}_ + {{- if eq .Arch "amd64" }}x64 + {{- else if eq .Arch "386" }}x32 + {{- else }}{{ .Arch }}{{ end }} + {{- with .Arm }}v{{ . }}{{ end }} format_overrides: - goos: windows - format: zip - replacements: - amd64: x64 - 386: x32 + formats: [zip] release: prerelease: true +