diff --git a/.goreleaser.yml b/.goreleaser.yml index 147cd8e..3096ff7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: >- @@ -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