-
Notifications
You must be signed in to change notification settings - Fork 13
/
.goreleaser.yaml
44 lines (43 loc) · 1000 Bytes
/
.goreleaser.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
project_name: gomi
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- main: .
binary: gomi
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
env:
- CGO_ENABLED=0
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
release:
prerelease: auto
# https://goreleaser.com/customization/#Homebrew
brews:
- tap:
owner: b4b4r07
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
folder: Formula
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: https://babarot.me/gomi
description: |
Replacement for UNIX rm command!
license: MIT
skip_upload: auto
test: |
system "#{bin}/gomi", "--version"