-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
44 lines (44 loc) · 1.01 KB
/
.goreleaser.yml
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
version: 2
before:
hooks:
- go mod download
builds:
- main: main.go
binary: nextver
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- darwin
- windows
ldflags:
- >-
-X github.com/craftypath/nextver/cmd/nextver.Version={{ .Tag }}
-X github.com/craftypath/nextver/cmd/nextver.GitCommit={{ .Commit }}
-X github.com/craftypath/nextver/cmd/nextver.BuildDate={{ .Date }}
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ .Tag }}-next"
archives:
- format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
brews:
- repository:
owner: craftypath
name: homebrew-tap
commit_author:
name: craftypath-ci-bot
email: craftypath-ci-bot@users.noreply.github.com
directory: Formula
homepage: https://github.com/craftypath/nextver/
description: Automatic semver versioning
test: |
system "#{bin}/nextver --version"