Skip to content

Commit 2659a8c

Browse files
committed
Update goreleaser to v2
1 parent 67537c2 commit 2659a8c

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ jobs:
130130
go-version: 1.24.x
131131

132132
- name: Run goreleaser
133-
uses: goreleaser/goreleaser-action@v4
133+
uses: goreleaser/goreleaser-action@v6
134134
with:
135135
distribution: goreleaser
136-
version: v1.17.2
136+
version: v2
137137
args: release --clean
138138
env:
139139
GITHUB_TOKEN: ${{secrets.GITHUB_API_TOKEN}}

.goreleaser.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
2-
# Make sure to check the documentation at http://goreleaser.com
1+
version: 2
2+
33
builds:
44
- env:
55
- CGO_ENABLED=0
@@ -18,26 +18,28 @@ builds:
1818
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
1919

2020
archives:
21-
- replacements:
22-
darwin: Darwin
23-
linux: Linux
24-
windows: Windows
25-
386: 32-bit
26-
amd64: x86_64
21+
- name_template: >-
22+
{{- .ProjectName }}_
23+
{{- .Version }}_
24+
{{- .Os }}_
25+
{{- if eq .Arch "amd64" }}x86_64
26+
{{- else if eq .Arch "386" }}32-bit
27+
{{- else if eq .Arch "arm" }}armv6
28+
{{- else }}{{ .Arch }}{{ end }}
2729
format_overrides:
2830
- goos: windows
29-
format: zip
31+
formats: [ zip ]
3032
checksum:
3133
name_template: 'checksums.txt'
3234
snapshot:
33-
name_template: '{{ .Tag }}-next'
35+
version_template: '{{ .Tag }}-next'
3436
changelog:
3537
use: github-native
3638
sort: asc
3739
brews:
3840
-
3941
# Repository to push the tap to.
40-
tap:
42+
repository:
4143
owner: jesseduffield
4244
name: homebrew-lazygit
4345

0 commit comments

Comments
 (0)