summaryrefslogtreecommitdiffstats
path: root/.goreleaser.yml
blob: d57e39f3aaac88db53faa507650137818c45e340 (plain) (blame)
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
release:
  prerelease: auto
  name_template: "{{.ProjectName}} v{{.Version}}"

builds:
- env:
    - CGO_ENABLED=0
  goos:
    - freebsd
    - windows
    - darwin
    - linux
    - dragonfly
    - netbsd
    - openbsd
  goarch:
    - amd64
    - arm
    - arm64
    - 386
  ldflags:
    - -s -w -X main.githash={{.ShortCommit}}

archive:
  name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
  format: binary
  files:
    - none*
  replacements:
    386: 32bit
    amd64: 64bit

checksum:
  name_template: 'checksums.txt'