-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.goreleaser.yml
55 lines (54 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
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- ./check-ain-version.sh {{ .Tag }}
builds:
- main: ./cmd/ain/main.go
ldflags:
- -s -w -X main.gitSha={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- id: default
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin"}}mac_os
{{- else }}{{ tolower .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
files:
- assets/*
- README.md
- LICENSE
wrap_in_directory: true
scoops:
- repository:
owner: jonaslu
name: scoop-tools
homepage: "https://github.com/jonaslu/ain"
description: "Ain is a terminal API client. It's an alternative to postman, paw or insomnia."
license: MIT
release:
draft: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Version }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'