-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.goreleaser.yml
58 lines (51 loc) · 1.04 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
# http://goreleaser.com
release:
github:
owner: markruler
name: swage
prerelease: false
env_files:
github_token: ~/.config/goreleaser/github_token
before:
hooks:
- go mod tidy
# - go generate ./...
builds:
- binary: swage
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
# - 386
# - arm64
ldflags:
- -s -w -extldflags='-static' -X github.com/markruler/swage/cmd.swageVersion={{ .Tag }}
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64 # 64-bit
# 386: i386 # 32-bit
name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
snapshot:
name_template: '{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}'
checksum:
name_template: '{{ .ProjectName }}_{{ .Tag }}_checksums'
changelog:
sort: asc
filters:
exclude:
- docs
- test
- typo
- Merge pull request
- Merge branch