Skip to content

Commit 925cfd0

Browse files
committed
Added Goreleaser
1 parent 3158caa commit 925cfd0

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919

2020
# Go workspace file
2121
go.work
22+
23+
dist/

.goreleaser.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: 1
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
- go generate ./...
7+
8+
builds:
9+
- env:
10+
- CGO_ENABLED=0
11+
goos:
12+
- linux
13+
- windows
14+
- darwin
15+
16+
brews:
17+
- name: git-alerts
18+
homepage: https://github.com/boringtools/git-alerts
19+
description: "Tool to detect and monitor GitHub org users public repositories"
20+
license: "Apache-2.0"
21+
repository:
22+
owner: boringtools
23+
name: homebrew-tap
24+
branch: main
25+
26+
archives:
27+
- format: tar.gz
28+
name_template: >-
29+
{{ .ProjectName }}_
30+
{{- title .Os }}_
31+
{{- if eq .Arch "amd64" }}x86_64
32+
{{- else if eq .Arch "386" }}i386
33+
{{- else }}{{ .Arch }}{{ end }}
34+
{{- if .Arm }}v{{ .Arm }}{{ end }}
35+
format_overrides:
36+
- goos: windows
37+
format: zip
38+
39+
changelog:
40+
sort: asc
41+
filters:
42+
exclude:
43+
- "^docs:"
44+
- "^test:"

0 commit comments

Comments
 (0)