diff --git a/.goreleaser.yml b/.goreleaser.yml index 456fec2..8512262 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: - go mod tidy @@ -27,10 +29,11 @@ builds: ignore: - goos: windows goarch: arm64 + - goos: windows + goarch: arm archives: -- replacements: - 386: 32-bit + - name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ if eq .Arch \"386\" }}32-bit{{ else }}{{ .Arch }}{{ end }}" checksum: name_template: 'checksums.txt' @@ -44,7 +47,7 @@ changelog: - '^test:' brews: - - tap: + - repository: owner: nakabonne name: homebrew-ali homepage: 'https://github.com/nakabonne/ali' diff --git a/Makefile b/Makefile index ba6fa3b..6c1dc06 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,7 @@ test: .PHONY: mockgen mockgen: mockgen -source=./gui/widgets.go -destination=./gui/widgets.mock.go -package=gui + +.PHONY: release-dry-run +release-dry-run: + goreleaser release --snapshot --clean