-
Notifications
You must be signed in to change notification settings - Fork 66
/
.goreleaser.yml
92 lines (92 loc) · 2.48 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
version: 2
before:
hooks:
- go mod download
- ./tools/completions.sh
builds:
- env:
- CGO_ENABLED=0
ldflags: "-s -w -X main.version={{.Version}} -X main.commit={{.FullCommit}} -X main.date={{.CommitDate}}"
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: darwin
goarch: arm
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "arm" }}ARM
{{- else if eq .Arch "arm64" }}ARM64
{{- else }}{{ .Arch }}{{ end }}
files:
- README.md
- LICENSE
- completions/*
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
id: packages
description: Update multiple repositories in bulk
maintainer: Johan Lindell <[email protected]>
license: Apache-2.0
contents:
- src: ./completions/multi-gitter.bash
dst: /etc/bash_completion.d/multi-gitter
- src: ./completions/multi-gitter.fish
dst: /usr/share/fish/completions/multi-gitter.fish
- src: ./completions/multi-gitter.zsh
dst: /usr/local/share/zsh/site-functions/_multi-gitter
formats:
- deb
- rpm
recommends:
- git
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
brews:
- name: multi-gitter
repository:
owner: lindell
name: homebrew-multi-gitter
goarm: 6
commit_author:
name: Johan Lindell
email: [email protected]
description: "Update multiple repositories in bulk"
homepage: https://github.com/lindell/multi-gitter
license: "Apache-2.0"
directory: Formula
install: |-
bin.install "multi-gitter"
bash_completion.install "completions/multi-gitter.bash" => "multi-gitter"
zsh_completion.install "completions/multi-gitter.zsh" => "_multi-gitter"
fish_completion.install "completions/multi-gitter.fish"
test: |
system "#{bin}/multi-gitter", "version"
publishers:
- name: fury.io
ids:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/multi-gitter/
signs:
- artifacts: checksum
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]