-
Notifications
You must be signed in to change notification settings - Fork 23
/
.goreleaser.yaml
115 lines (104 loc) · 2.98 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
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
version: 2
before:
hooks:
- "rm -rf man"
- 'sh -c "cd docs && go run convert-manpages.go --output-dir ../man --version v{{ .Version }}"'
builds:
- dir: "./cmd/av"
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- "-X 'github.com/aviator-co/av/internal/config.Version=v{{ .Version }}'"
# Create a GitHub release on the av repo
release: {}
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "darwin" }}macos
{{- else }}{{ .Arch }}{{ end }}
files:
- "LICENSE"
- "README.md"
- "man"
nfpms:
- id: packages
vendor: "Aviator"
homepage: "https://aviator.co"
maintainer: "Masaya Suzuki <[email protected]>"
description: "CLI tool to create, update, review and merge stacked PRs on GitHub."
license: "MIT"
section: "utils"
formats: ["deb", "rpm"]
dependencies: ["git"]
contents:
- src: "man/man1/*"
dst: "/usr/share/man/man1"
- src: "man/man7/*"
dst: "/usr/share/man/man7"
deb:
lintian_overrides:
- "statically-linked-binary"
- "changelog-file-missing-in-native-package"
# Push to the homebrew tap
brews:
- repository:
owner: "aviator-co"
name: "homebrew-tap"
git:
url: "[email protected]:aviator-co/homebrew-tap.git"
private_key: "{{ .Env.AVIATOR_CO_HOMEBREW_REPO_SSH_KEY }}"
commit_author:
name: "aviator-bot"
email: "[email protected]"
homepage: "https://aviator.co"
license: "MIT"
install: |
bin.install "av"
man.install Dir["man/*"]
generate_completions_from_executable(bin/"av", "completion", shells: [:bash, :zsh])
aurs:
- name: "av-cli-bin"
homepage: "https://aviator.co"
description: "CLI tool to create, update, review and merge stacked PRs on GitHub."
maintainers:
- "Masaya Suzuki <[email protected]>"
license: "MIT"
depends: ["git"]
provides: ["av-cli"]
conflicts: ["av-cli"]
optdepends: ["github-cli: for GitHub authentication"]
private_key: "{{ .Env.AVIATOR_CO_HOMEBREW_REPO_SSH_KEY }}"
git_url: "ssh://[email protected]/av-cli-bin.git"
package: |-
install -Dm755 "./av" "${pkgdir}/usr/bin/av"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/av/LICENSE"
for manpage in $(ls ./man/man1); do
install -Dm644 "./man/man1/${manpage}" "${pkgdir}/usr/share/man/man1/${manpage}"
done
publishers:
- name: fury.io
ids:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/aviator/
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-dev-{{ .ShortCommit }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"