Skip to content

Commit

Permalink
Support goreleaser version2 format
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaos committed Dec 29, 2024
1 parent 3d8f47b commit 1474b3a
Showing 1 changed file with 30 additions and 23 deletions.
53 changes: 30 additions & 23 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
before:
hooks:
- go get golang.org/x/tools/cmd/goyacc
- go install golang.org/x/tools/cmd/goyacc@latest
- go yacc -o filter_parser.go filter_parser.y
- rm y.output
- go mod download

builds:
- binary: todoist
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
ldflags:
- -s -w -X main.version={{.Version}}
- id: todoist_build
binary: todoist
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
ldflags:
- -s -w -X main.version={{.Version}}

archives:
- id: replace
name_template: >-
Expand All @@ -26,21 +29,25 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
checksum:
name_template: 'checksums.txt'
name_template: checksums.txt

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^docs:'
- '^test:'

brews:
- tap:
owner: sachaos
name: homebrew-todoist
folder: Formula
homepage: https://github.com/sachaos/todoist
description: Todoist CLI client
skip_upload: auto
- tap:
owner: sachaos
name: homebrew-todoist
folder: Formula
homepage: https://github.com/sachaos/todoist
description: Todoist CLI client
skip_upload: auto

0 comments on commit 1474b3a

Please sign in to comment.