-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yml
48 lines (41 loc) · 1.13 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
# GoReleaser configuration file.
#
# For more info, browse to http://goreleaser.com.
#
# NOTE: The GoReleaser is not meant to be run directly, but rather through
# Make's release-build target.
project_name: Oasis Rosetta Gateway
env:
# Require use of Go modules.
- GO111MODULE=on
builds:
- id: oasis-rosetta-gateway
binary: oasis-rosetta-gateway
flags:
- -trimpath
ldflags:
# NOTE: At the moment, GoReleaser produces different binaries when
# releases are built from different git paths, unless -buildid= is added
# to ldflags.
# For more details, see:
# https://github.com/oasisprotocol/oasis-core/issues/4124.
- -buildid=
- "{{.Env.GOLDFLAGS_VERSION}}"
goos:
- linux
goarch:
- amd64
archives:
- name_template: "{{replace .ProjectName \" \" \"_\" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}"
wrap_in_directory: true
files:
- CHANGELOG.md
- README.md
- LICENSE
checksum:
name_template: SHA256SUMS-{{.Version}}.txt
algorithm: sha256
snapshot:
name_template: "{{.Version}}-dev"
release:
name_template: "{{.ProjectName}} {{.Version}}"