-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
143 lines (121 loc) · 3.66 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
# This is a goreleaser config file that handles building and sending builds to GitHub.
# You can install goreleaser on MacOs with Homebrew
# https://goreleaser.com/install/
# brew install goreleaser
# Quick notes
# Release locally
# goreleaser release --snapshot --rm-dist
# Release latest tagged version
# git tag -a v0.1.0 -m "First release"
# git push origin v0.1.0
# goreleaser release --rm-dist
# git push --delete origin v...
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: auto
# What to do with the release notes in case there the release already exists.
#
# Valid options are:
# - `keep-existing`: keep the existing notes
# - `append`: append the current release notes to the existing notes
# - `prepend`: prepend the current release notes to the existing notes
# - `replace`: replace existing notes
#
# Default is `keep-existing`.
mode: replace
# Header template for the release body.
# Defaults to empty.
header: |
## gotail ({{ .Date }})
gotail follows files that can grow
v0.1.10
Added help output on completion setup
v0.1.9
Using only one file list now.
v0.1.8
Fixed JSON regex.
v0.1.7
Simplified match test.
v0.1.6
Added matching for pattern in lines.
v0.1.5
JSON only output added.
v0.1.4
Fixed stdin handling.
v0.1.3
Fixes to flag handling and cleanup.
v0.1.2
Many fixes to output and code re-org.
v0.1.1
Handling flags and JSON output better
v0.1.0
Initial support with JSON
# Footer template for the release body.
# Defaults to empty.
footer: |
## Enjoy
Tag {{ .Tag }}
changelog:
# Set this to true if you don't want any changelog at all.
# Warning: this will also ignore any changelog files passed via `--release-notes`,
# and will render an empty changelog.
# This may result in an empty release notes on GitHub/GitLab/Gitea.
skip: true
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# .goreleaser.yaml
github_urls:
# api: https://github.office.opendns.com/api/v3/
# upload: https://github.office.opendns.com/api/uploads/
# download: https://github.office.opendns.com/
# set to true if you use a self-signed certificate
skip_tls_verify: false
env_files:
github_token: ~/.config/goreleaser/github_token
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- go mod vendor
# you may remove this if you don't need go generate
# - go generate ./...
builds:
- # env:
env:
- CGO_ENABLED=0
ldflags:
- >
-X github.com/imarsman/gotail/cmd/internal/args.GitCommit={{.ShortCommit}}
-X github.com/imarsman/gotail.cmd/internal/args.GitLastTag={{.PreviousTag}}
-X github.com/imarsman/gotail/cmd/internal/args.GitExactTag={{.Tag}}
-X github.com/imarsman/gotail/cmd/internal/args.Date={{.Date}}
-s
-w
id: gotail
dir: .
main: ./cmd/gotail
binary: gotail
goos:
- linux
- darwin
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386, amd64 and arm64.
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: darwin
linux: linux
windows: windows
386: i386
amd64: amd64
arm64: arm64
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"