-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
71 lines (68 loc) · 1.81 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
before:
hooks:
- go mod tidy
- go mod download
blobs:
- provider: s3
bucket: releases.mantil.io
region: eu-central-1
folder: "{{ .Tag }}"
builds:
- env:
- CGO_ENABLED=0
targets:
- darwin_amd64
- darwin_arm64
- linux_386
- linux_amd64
- linux_arm
- linux_arm64
- windows_386
- windows_amd64
main: ./cli
ldflags:
- -X "github.com/mantil-io/mantil/domain.tag={{ .Env.tag }}"
- -X "github.com/mantil-io/mantil/domain.dev={{ .Env.dev }}"
- -X "github.com/mantil-io/mantil/domain.ontag={{ .Env.on_tag }}"
flags:
- -trimpath
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files: # remove README to go into archive (that is default: https://goreleaser.com/customization/archive/?h=readme)
- changelog.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- tap:
owner: mantil-io
name: homebrew-mantil
homepage: "https://www.mantil.com"
description: "Go Development Toolkit for AWS"
license: MIT
skip_upload: auto
folder: Formula
dependencies:
- name: go
url_template: "releases.mantil.io/{{ .Tag }}/{{ .ArtifactName }}"
install: |-
bin.install "mantil"
# Install shell completions
output = Utils.safe_popen_read("#{bin}/mantil", "completion", "bash")
(bash_completion/"mantil").write output
output = Utils.safe_popen_read("#{bin}/mantil", "completion", "zsh")
(zsh_completion/"_mantil").write output
output = Utils.safe_popen_read("#{bin}/mantil", "completion", "fish")
(fish_completion/"mantil.fish").write output