-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
115 lines (97 loc) · 2.79 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.buildVersion={{.Version}} -X main.buildCommit={{.ShortCommit}} -X main.buildDate={{.Date}}
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm: [6,7]
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
snapshot:
# Allows you to change the name of the generated snapshot
# Default is `SNAPSHOT-{{.ShortCommit}}`.
name_template: '{{ .Version }}+{{.ShortCommit}}'
archives:
- name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- LICENSE*
- README*
- CHANGELOG*
- docs/manpages/*
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
algorithm: sha256
changelog:
skip: true
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^blds:'
release:
# If set to true, will not auto-publish the release.
draft: false
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
prerelease: auto
# You can change the name of the GitHub release.
name_template: "{{.Tag}}"
brews:
-
# Github repository to push the tap to.
tap:
owner: gesquive
name: homebrew-tap
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: release-bot
email: [email protected]
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# Caveats for the user of your binary.
# Default is empty.
caveats: ""
# Your app's homepage.
# Default is empty.
homepage: "https://github.com/gesquive/git-user"
# Your app's description.
# Default is empty.
description: "lets you quickly switch between multiple git user profiles"
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
skip_upload: auto
# Packages your package depends on.
dependencies:
- git
# Packages that conflict with your package.
conflicts: []
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "git-user"
man.mkpath
man1.install "docs/manpages/git-user.1", "docs/manpages/git-user-add.1", "docs/manpages/git-user-del.1", "docs/manpages/git-user-edit.1", "docs/manpages/git-user-list.1", "docs/manpages/git-user-rm.1", "docs/manpages/git-user-set.1"