forked from dotzero/git-profile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
57 lines (53 loc) · 1.51 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
53
54
55
56
57
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
ldflags: -s -w -X github.com/dm3ch/git-profile-manager/version.VersionNumber={{.Version}} -X github.com/dm3ch/git-profile-manager/version.VersionCommitHash={{.Commit}} -X github.com/dm3ch/git-profile-manager/version.VersionBuildDate={{.Date}}
goarch:
- amd64
goos:
- darwin
- linux
- windows
universal_binaries:
- replace: true
archives:
- replacements:
darwin: MacOS
linux: Linux
windows: Windows
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
algorithm: sha256
brews:
- name: "git-profile-manager"
github:
owner: dm3ch
name: homebrew-tap
commit_author:
name: dm3ch-ci
email: [email protected]
folder: Formula
caveats: "git-profile-manager --help"
homepage: "https://github.com/dm3ch/git-profile-manager"
description: "Allows to manage and switch between multiple git profiles"
custom_block: |
head "https://github.com/dm3ch/git-profile-manager.git"
dependencies:
- git
test: |
system "#{bin}/git-profile-manager", "--version"
install: |
ln_s "git-profile-manager", "git-profile"
bin.install "git-profile-manager"
bin.install "git-profile"
system "#{bin}/git-profile-manager completion bash > bash_completion.bash"
system "#{bin}/git-profile-manager completion zsh > zsh_completion.zsh"
bash_completion.install "bash_completion.bash"
zsh_completion.install "zsh_completion.zsh"