forked from nats-io/natscli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
81 lines (74 loc) · 1.62 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
project_name: natscli
release:
github:
owner: nats-io
name: natscli
name_template: "Release {{.Version}}"
draft: true
prerelease: auto
changelog:
skip: true
builds:
- main: ./nats
id: nats
binary: nats
env:
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
- freebsd
goarch:
- amd64
- arm
- arm64
- 386
- s390x
goarm:
- 6
- 7
ignore:
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: freebsd
goarch: 386
archives:
- name_template: "nats-{{.Version}}-{{.Os}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}"
wrap_in_directory: true
format: zip
files:
- README.md
- LICENSE
checksum:
name_template: "SHA256SUMS"
algorithm: sha256
brews:
- name: nats
folder: Formula
repository:
owner: nats-io
name: homebrew-nats-tools
token: "{{ .Env.GITHUB_APP_TOKEN }}"
url_template: "https://github.com/nats-io/natscli/releases/download/{{ .Tag }}/nats-{{.Version}}-{{ .Os }}-{{ .Arch }}{{if .Arm}}{{.Arm}}{{end}}.zip"
homepage: "https://github.com/nats-io/natscli"
description: "NATS utility"
skip_upload: auto
test: |
system "#{bin}/nats --version"
install: |
bin.install "nats"
nfpms:
- file_name_template: 'nats-{{.Version}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}'
homepage: https://nats.io
description: NATS Utility
maintainer: R.I. Pienaar <[email protected]>
license: Apache 2.0
vendor: Synadia Inc.
bindir: /usr/local/bin
formats:
- deb
- rpm