From cab763c6d32030412c6972bf843673a081746dd7 Mon Sep 17 00:00:00 2001 From: Drew Robinson Date: Thu, 5 Sep 2024 18:21:35 +1000 Subject: [PATCH] chore: Update Goreleaser config to v2 Signed-off-by: Drew Robinson --- .goreleaser.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b3c39d1..cb444d2 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,5 +1,6 @@ # Goreleaser config for ahoy. # Make sure to check the documentation at https://goreleaser.com +version: 2 before: hooks: - go mod tidy @@ -22,7 +23,7 @@ builds: - -trimpath - -v ldflags: - - '-s -w -X main.version={{ .Tag }} -X main.GitCommit={{ .ShortCommit }} -X main.GitBranch={{ .Branch }} -X main.BuildTime={{ .Date }}' + - "-s -w -X main.version={{ .Tag }} -X main.GitCommit={{ .ShortCommit }} -X main.GitBranch={{ .Branch }} -X main.BuildTime={{ .Date }}" no_unique_dist_dir: true archives: @@ -33,22 +34,21 @@ archives: {{- .Arch }} # use zip for windows archives format_overrides: - - goos: windows - format: zip + - goos: windows + format: zip checksum: - name_template: 'checksums.txt' + name_template: "checksums.txt" snapshot: - name_template: "{{ incpatch .Version }}-next" + version_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' + - "^docs:" + - "^test:" sboms: - artifacts: binary - # release: # github: # owner: ahoy-cli