-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
98 lines (89 loc) · 2.32 KB
/
.goreleaser.yaml
File metadata and controls
98 lines (89 loc) · 2.32 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
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- main: ./cmd/cmdperf
env:
- CGO_ENABLED=0
goos:
- linux
- freebsd
- windows
- darwin
homebrew_casks:
- repository:
owner: miklosn
name: homebrew-tap
homepage: https://github.com/miklosn/cmdperf
description: Command Performance Benchmarking
license: MIT
hooks:
post:
install: |
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
Dir.glob("#{staged_path}/cmdperf_*").each do |file|
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", file]
end
end
archives:
- formats: [binary]
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
nfpms:
- package_name: cmdperf
homepage: https://github.com/miklosn/cmdperf
maintainer: Miklos Niedermayer <miklos.niedermayer@cray.one>
description: |
Command Performance Benchmarking.
formats:
- rpm
- deb
changelog:
# Sort commits by semver if any
sort: asc
# Use custom filters
filters:
# Commit messages matching the regexp listed here will be removed from
# the changelog
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- Merge pull request
- Merge branch
# Groups define how to group commits in the changelog.
# Default is no groups.
groups:
- title: Features
regexp: '^feat[(\\w)]*!?:'
order: 0
- title: Bug Fixes
regexp: '^fix[(\\w)]*!?:'
order: 1
- title: Performance Improvements
regexp: '^perf[(\\w)]*!?:'
order: 2
- title: Changes
regexp: '^refactor[(\\w)]*!?:'
order: 3
- title: Other
order: 999
release:
# GitHub release options
github:
owner: miklosn
name: cmdperf
# If set to true, will not auto-publish the release.
draft: false
# If set to auto, will use the tag to determine if it should mark as a pre-release
prerelease: auto
# You can change the name of the release.
name_template: "{{.ProjectName}} {{.Tag}}"