summaryrefslogtreecommitdiffstats
path: root/.goreleaser.yml
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-10-27 01:46:43 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-10-27 11:07:27 +0900
commit552414978ed74e7cd77bd57874f6fbbe3e0024c4 (patch)
treeffb8cb0796983c6e56c4f47a3216697386f3482e /.goreleaser.yml
parent607081bbaab228f41ebfe1f7aa0e993ab134c205 (diff)
0.24.0-rc10.24.0-rc1
Diffstat (limited to '.goreleaser.yml')
-rw-r--r--.goreleaser.yml69
1 files changed, 69 insertions, 0 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml
new file mode 100644
index 00000000..57e3b287
--- /dev/null
+++ b/.goreleaser.yml
@@ -0,0 +1,69 @@
+---
+project_name: fzf
+
+before:
+ hooks:
+ - go mod download
+
+builds:
+ - id: fzf-macos
+ binary: fzf
+ goos:
+ - darwin
+ goarch:
+ - amd64
+ ldflags:
+ - "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
+ hooks:
+ post: gon .gon.hcl
+
+ - goos:
+ - linux
+ - windows
+ - freebsd
+ - openbsd
+ goarch:
+ - amd64
+ - arm
+ - arm64
+ goarm:
+ - 5
+ - 6
+ - 7
+ ldflags:
+ - "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
+ ignore:
+ - goos: freebsd
+ goarch: arm
+ - goos: openbsd
+ goarch: arm
+ - goos: freebsd
+ goarch: arm64
+ - goos: openbsd
+ goarch: arm64
+
+archives:
+ - name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
+ format: tar.gz
+ format_overrides:
+ - goos: windows
+ format: zip
+ files:
+ - non-existent*
+
+release:
+ github:
+ owner: junegunn
+ name: fzf
+ prerelease: auto
+ name_template: '{{ .Tag }}'
+
+snapshot:
+ name_template: "{{ .Tag }}-devel"
+
+changelog:
+ sort: asc
+ filters:
+ exclude:
+ - README
+ - test