-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
58 lines (58 loc) · 1.12 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
project_name: pigHosts
dist: ../dist
env:
- CGO_ENABLED=0
- GO111MODULE=on
before:
hooks:
# - task write-version VER={{ .ShortCommit }}
- task mod-vendor
builds:
-
id: "pigHosts"
main: ./cmd/pighosts/main.go
goos:
- linux
- windows
goarch:
- 386
- amd64
hooks:
# pre: echo starting...
# post: task write-version VER={{ .Version }}
archives:
-
id: "pigHosts"
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- README.md
- LICENSE
- VERSION
checksum:
name_template: 'checksums_md5.txt'
algorithm: md5
snapshot:
name_template: SNAPSHOT-{{ time "2006_01_02_T_15_04_05" }}-{{ .ShortCommit }}
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: goldfix
name: pigHosts
draft: true
prerelease: false
name_template: "{{.ProjectName}}-v{{.Version}}"
disable: false