-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
146 lines (120 loc) · 4.32 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
version: 1
project_name: ethr-cli
env_files:
github_token: ~/.config/goreleaser/github_token
before:
hooks:
- go vet
- go mod tidy
- go mod vendor
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x86-64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
# gitlab_urls:
# api: https://gitlab.com/api/v4/
# download: https://gitlab.com
# skip_tls_verify: false
# use_package_registry: true
# use_job_token: true
brews:
- name: ethr-cli
# url_template: "[email protected]:ethrgg/templates/ethr-cli.git"
commit_author:
name: Jacob B. Sanders
email: [email protected]
commit_msg_template: "[Chore]: Brew Formula Bump ({{ .ProjectName }}), {{ .Tag }}"
folder: Formula
# caveats: |
# Internal Usage Only
homepage: "https://github.com/x-ethr/ethr-cli" # "https://gitlab.com/ethrgg/templates/ethr-cli"
description: "ETHR Utilities CLI"
license: "BSD 3-Clause License"
skip_upload: false # true
download_strategy: CurlDownloadStrategy # GitDownloadStrategy
dependencies:
- name: git
os: mac
# - name: go
# version: "1.22"
# type: build
- name: zsh
type: optional
- name: fish
type: optional
- name: bash
type: optional
conflicts:
- ethr-cli
# --> required gitlab configuration
# install: | # https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md
# ENV["GOPATH"] = buildpath
# # bin_path = buildpath/"src/gitlab.com:ethrgg/templates/ethr-cli"
# bin_path = buildpath/"src/gitlab.com:ethrgg/templates/ethr-cli"
# bin_path.install Dir["*"]
# cd bin_path do
# system "go", "build", "-o", bin/"ethr-cli", "."
# end
repository:
branch: main
owner: x-ethr
name: homebrew-taps
changelog:
use: github # gitlab
sort: asc
abbrev: 0
groups:
- title: "Features"
regexp: '^.*?(f|F)eature(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 0
- title: "Enhancements"
regexp: '^.*?(e|E)nhancement(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 1
- title: "Bug Fixes"
regexp: '^.*?(b|B)ug(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 2
- title: "Rollback"
regexp: '^.*?(r|R)evert(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 3
- title: "Chore"
regexp: '^.*?(c|C)hore(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 4
- title: "Documentation"
regexp: '^.*?(d|D)ocumentation(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 5
- title: "CI"
regexp: '^.*?(c|C)(i|I)(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 6
- title: "Refactor"
regexp: '^.*?(r|R)efactor(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 7
- title: "Internal"
regexp: '^.*?(i|I)nternal(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
order: 8
- title: Others
order: 999
# filters:
# include:
# - '^.*?(f|F)eature(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
# - '^.*?(e|E)nhancement(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
# - '^.*?(b|B)ug(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
# - '^.*?(r|R)evert(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
# - '^.*?(c|C)hore(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
# - '^.*?(d|D)ocumentation(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'
# - '^.*?(c|C)(i|I)(\([[:word:]]+\))??!?(\ |)?(\:|\-)?(\ |).+$'