1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-13 01:30:53 +02:00

Update goreleaser to v2

This commit is contained in:
Stefan Haller
2025-07-05 16:50:33 +02:00
parent 67537c2356
commit 2659a8cd90
2 changed files with 15 additions and 13 deletions

View File

@ -130,10 +130,10 @@ jobs:
go-version: 1.24.x go-version: 1.24.x
- name: Run goreleaser - name: Run goreleaser
uses: goreleaser/goreleaser-action@v4 uses: goreleaser/goreleaser-action@v6
with: with:
distribution: goreleaser distribution: goreleaser
version: v1.17.2 version: v2
args: release --clean args: release --clean
env: env:
GITHUB_TOKEN: ${{secrets.GITHUB_API_TOKEN}} GITHUB_TOKEN: ${{secrets.GITHUB_API_TOKEN}}

View File

@ -1,5 +1,5 @@
# This is an example goreleaser.yaml file with some sane defaults. version: 2
# Make sure to check the documentation at http://goreleaser.com
builds: builds:
- env: - env:
- CGO_ENABLED=0 - CGO_ENABLED=0
@ -18,26 +18,28 @@ builds:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.buildSource=binaryRelease
archives: archives:
- replacements: - name_template: >-
darwin: Darwin {{- .ProjectName }}_
linux: Linux {{- .Version }}_
windows: Windows {{- .Os }}_
386: 32-bit {{- if eq .Arch "amd64" }}x86_64
amd64: x86_64 {{- else if eq .Arch "386" }}32-bit
{{- else if eq .Arch "arm" }}armv6
{{- else }}{{ .Arch }}{{ end }}
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip formats: [ zip ]
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'
snapshot: snapshot:
name_template: '{{ .Tag }}-next' version_template: '{{ .Tag }}-next'
changelog: changelog:
use: github-native use: github-native
sort: asc sort: asc
brews: brews:
- -
# Repository to push the tap to. # Repository to push the tap to.
tap: repository:
owner: jesseduffield owner: jesseduffield
name: homebrew-lazygit name: homebrew-lazygit