-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
58 lines (57 loc) · 1.55 KB
/
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
before:
hooks:
- go mod tidy
- ./scripts/completions.sh
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/letseat/
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w'
- -X github.com/drewstinnett/letseat/cmd/letseat/cmd.date={{ .CommitTimestamp }}
- -X github.com/drewstinnett/letseat/cmd/letseat/cmd.version={{ .Tag }}
- -X github.com/drewstinnett/letseat/cmd/letseat/cmd.commit={{ .ShortCommit }}
flags:
- -trimpath
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: darwin
goarch: '386'
binary: 'letseat'
archives:
- format: tar.gz
name_template: 'letseat-{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- completions/*
checksum:
name_template: 'letseat-{{ .Version }}_SHA256SUMS'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-snapshot"
changelog:
skip: true
brews:
- name: 'letseat'
repository:
owner: drewstinnett
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
description: "Figure out where to go for dinner!"
homepage: "https://github.com/drewstinnett/letseat"
license: BSD-2-Clause
caveats: |
Add the following in your ~/.zshrc or ~/.profile for faster typin':
alias tp="#{opt_bin}/letseat"
install: |-
bin.install "letseat"
bash_completion.install "completions/letseat.bash" => "letseat"
zsh_completion.install "completions/letseat.zsh" => "_letseat"
fish_completion.install "completions/letseat.fish"