forked from fishworks/gofish
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
41 lines (41 loc) · 901 Bytes
/
.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
before:
hooks:
- go mod tidy
# - go generate ./...
builds:
- main: ./cmd/gofish
flags:
- -trimpath
tags:
- static_build
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s
- -w
- -X github.com/tinned-fish/gofish/version.version={{.Version}}
- -X github.com/tinned-fish/gofish/version.commit={{.Commit}}
- -X github.com/tinned-fish/gofish/version.date={{.CommitDate}}
- -X github.com/tinned-fish/gofish/version.buildBy=HDS
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
files:
- LICENSE*
- README*
- CHANGELOG*
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github
sort: asc
release:
extra_files:
- glob: ./scripts/install.*