-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
63 lines (63 loc) · 1.25 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
59
60
61
62
63
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
# Run locally with: goreleaser --rm-dist --snapshot --skip-publish
project_name: tbd
before:
hooks:
- go mod tidy
- go mod download
builds:
- binary: '{{ .ProjectName }}'
main: ./main.go
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.commit={{.ShortCommit}}
- -a -extldflags "-static"
goos:
- windows
- linux
- darwin
goarch:
- arm
- arm64
- amd64
goarm:
- 7
ignore:
- goos: darwin
goarch: arm
- goos: darwin
goarch: arm64
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
archives:
- replacements:
darwin: macOS
windows: win
amd64: 64-bit
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .ProjectName }}_{{ .Tag }}"
nfpms:
-
package_name: tbd
vendor: Luca Sepe
homepage: https://lucasepe.it/
maintainer: Luca Sepe <[email protected]>
description: A really simple way to create text templates with placeholders.
license: MIT
replacements:
amd64: 64-bit
formats:
- deb
- rpm
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'