-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
131 lines (121 loc) · 3.81 KB
/
.goreleaser.yaml
File metadata and controls
131 lines (121 loc) · 3.81 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: 2
project_name: git-profile
before:
hooks:
- go mod tidy
- go vet ./...
builds:
- id: git-profile
main: .
binary: git-profile
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- arm # linux/arm (armv7 — Raspberry Pi, embedded)
goarm:
- "7"
ignore:
- goos: darwin
goarch: arm
archives:
- id: default
formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}arm64
{{- else if eq .Arch "arm" }}armv7
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
- README.md
checksum:
name_template: checksums.txt
algorithm: sha256
snapshot:
version_template: "{{ incpatch .Version }}-dev"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- "^ci:"
- "Merge pull request"
- "Merge branch"
groups:
- title: "New Features"
regexp: "^feat"
order: 0
- title: "Bug Fixes"
regexp: "^fix"
order: 1
- title: "Other"
order: 999
# ── macOS / Linux: Homebrew ────────────────────────────────────────────────
# Binaries are uploaded to GitHub Releases; GoReleaser pushes the formula to
# the tap repo so `brew install hapiio/tap/git-profile` resolves correctly.
brews:
- repository:
owner: hapiio
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
directory: Formula
homepage: "https://github.com/hapiio/git-profile"
description: "Manage multiple git identity profiles with a single command"
license: "MIT"
test: |
system "#{bin}/git-profile", "version"
install: |
bin.install "git-profile"
# generate_completions_from_executable runs `git-profile completion <shell>`
# and writes the output to the correct Homebrew completion directory.
generate_completions_from_executable(bin/"git-profile", "completion")
# ── Arch Linux: AUR ──────────────────────────────────────────────────────
aurs:
- name: git-profile-bin
homepage: "https://github.com/hapiio/git-profile"
description: "Manage multiple git identity profiles with a single command"
maintainers:
- "hapiio <hapiio at users dot noreply dot github dot com>"
license: MIT
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/git-profile-bin.git"
skip_upload: auto # skip if AUR_KEY secret is not set
package: |-
install -Dm755 "./git-profile" "${pkgdir}/usr/bin/git-profile"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/git-profile/LICENSE"
install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/git-profile/README.md"
# ── Linux: .deb / .rpm ───────────────────────────────────────────────────
nfpms:
- id: packages
package_name: git-profile
homepage: https://github.com/hapiio/git-profile
maintainer: hapiio <hapiio@users.noreply.github.com>
description: Manage multiple git identity profiles with a single command.
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- src: ./LICENSE
dst: /usr/share/licenses/git-profile/LICENSE
- src: ./README.md
dst: /usr/share/doc/git-profile/README.md