forked from docopt/docopts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
41 lines (40 loc) · 1.16 KB
/
.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
# https://goreleaser.com
# https://goreleaser.com/customization/hooks/
before:
hooks:
- go mod tidy
# https://goreleaser.com/customization/build/
builds:
- env:
- CGO_ENABLED=0
targets:
- darwin_amd64
- darwin_arm64
- freebsd_amd64
- linux_386
- linux_amd64
- linux_arm
- windows_amd64
# https://goreleaser.com/customization/templates/
# defaults: https://goreleaser.com/cookbooks/using-main.version
ldflags:
- -X "main.Version={{.Version}}"
- -X "main.BuildDate={{.Date}}"
- -X "main.GitCommit={{.ShortCommit}}"
- -X "main.GoBuildVersion={{.Env.GOVERSION}}" # https://goreleaser.com/customization/build/#passing-environment-variables-to-ldflags
archives:
- format: binary # https://goreleaser.com/customization/archive/#disable-archiving
checksum:
name_template: 'sha256sum.txt'
# https://goreleaser.com/customization/snapshots/
snapshot:
name_template: "{{ incpatch .Version }}-next"
# https://goreleaser.com/customization/release/
release:
draft: true
github:
owner: jacanales
name: docopts
# https://goreleaser.com/customization/changelog/
changelog:
use: github-native