-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yml
52 lines (48 loc) · 1.25 KB
/
.goreleaser.yml
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
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/flora/flora.go
ldflags: -s -w -X main.VersionNumber={{.Version}} -X main.VersionCommitHash={{.Commit}} -X main.VersionBuildDate={{.Date}}
goarch:
- amd64
- arm64
goos:
- darwin
- linux
archives:
- files:
- configs/autocomplete/*
- LICENSE
checksum:
name_template: 'checksums.txt'
algorithm: sha256
brews:
- name: "flora"
tap:
owner: ketchoop
name: homebrew-tap
commit_author:
name: ketchoop
email: [email protected]
folder: Formula
caveats: "flora --help"
homepage: "https://github.com/ketchoop/flora"
description: "Allows to manage and switch between multiple terraform versions"
conflicts:
- terraform
custom_block: |
head "https://github.com/ketchoop/flora.git"
test: |
system "#{bin}/flora", "--help"
install: |
case File.basename(ENV["SHELL"])
when "zsh"
zsh_completion.install "configs/autocomplete/flora_zsh_autocomplete" => "_flora"
when "bash"
url "https://raw.githubusercontent.com/ketchoop/flora/master/configs/autocomplete/flora_bash_autocomplete"
bash_completion.install "configs/autocomplete/flora_bash_autocomplete" => "_flora"
end
bin.install "flora"