-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
128 lines (119 loc) · 3.41 KB
/
.goreleaser.yml
File metadata and controls
128 lines (119 loc) · 3.41 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
# Make sure to check the documentation at http://goreleaser.com
# ---------------------------
# General
# ---------------------------
version: 2
before:
hooks:
- |
sh -c "if [ \"${SKIP_GORELEASER_TESTS}\" = \"true\" ]; then
echo 'Skipping tests (SKIP_GORELEASER_TESTS=true)'
else
magex test
fi"
changelog:
use: github
sort: asc
abbrev: 0
format: '[`{{ slice .SHA 0 7 }}`]({{ .GitURL }}/commit/{{ .SHA }}): {{ .Message }}{{ with .AuthorUsername }} (@{{ . }}){{ end }}'
groups:
- title: "Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 100
- title: "Bug Fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 200
- title: "Documentation"
regexp: '^.*?docs?(\([[:word:]]+\))??!?:.+$'
order: 300
- title: "Refactoring"
regexp: '^.*?refactor(\([[:word:]]+\))??!?:.+$'
order: 400
- title: "Other Changes"
order: 9999
filters:
exclude:
- "^test:"
- "^Merge pull request"
- "^Merge branch"
# ---------------------------
# Builder
# ---------------------------
builds:
- id: go-broadcast
main: ./cmd/go-broadcast
binary: go-broadcast
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.buildDate={{.Date}}
# ---------------------------
# Archives
# ---------------------------
archives:
- id: go-broadcast
name_template: >-
{{- .ProjectName }}_{{- .Version }}_{{- .Os }}_{{- .Arch }}
files:
- LICENSE
- README.md
# ---------------------------
# Checksum
# ---------------------------
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
algorithm: sha256
# ---------------------------
# Github Release
# ---------------------------
release:
prerelease: "false"
name_template: "Release v{{.Version}}"
replace_existing_artifacts: true
# ---------------------------
# Announce
# ---------------------------
announce:
# See more at: https://goreleaser.com/customization/announce/#slack
slack:
enabled: false
message_template: "{{ .ProjectName }} {{ .Tag }} is out! Changelog: https://github.com/{{ .GitOwner }}/{{ .ProjectName }}/releases/tag/{{ .Tag }}"
channel: "#test_slack"
# username: ''
# icon_emoji: ''
# icon_url: ''
# See more at: https://goreleaser.com/customization/announce/#twitter
twitter:
enabled: false
message_template: "{{ .ProjectName }} {{ .Tag }} is out!"
# See more at: https://goreleaser.com/customization/announce/#discord
discord:
enabled: false
message_template: "{{ .ProjectName }} {{ .Tag }} is out!"
# Defaults to `GoReleaser`
author: ""
# Defaults to `3888754` - the grey-ish from goreleaser
color: ""
# Defaults to `https://goreleaser.com/static/avatar.png`
icon_url: ""
# See more at: https://goreleaser.com/customization/announce/#reddit
reddit:
enabled: false
# Application ID for Reddit Application
application_id: ""
# Username for your Reddit account
username: ""
# Defaults to `{{ .GitURL }}/releases/tag/{{ .Tag }}`
# url_template: 'https://github.com/{{ .GitOwner }}/{{ .ProjectName }}/releases/tag/{{ .Tag }}'
# Defaults to `{{ .ProjectName }} {{ .Tag }} is out!`
title_template: "{{ .ProjectName }} {{ .Tag }} is out!"