-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
70 lines (61 loc) · 1.75 KB
/
Copy path.goreleaser.yaml
File metadata and controls
70 lines (61 loc) · 1.75 KB
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
project_name: hostinger
version: 2
before:
hooks:
- mkdir -p completions
- sh -c 'go run . completion bash > completions/hostinger.bash'
- sh -c 'go run . completion zsh > completions/hostinger.zsh'
- sh -c 'go run . completion fish > completions/hostinger.fish'
builds:
- main: ./main.go
env:
- CGO_ENABLED=0
- GO111MODULE=on
flags:
- -mod=vendor
- -v
ldflags:
- -X github.com/hostinger/api-cli/utils.Build={{ .ShortCommit }}
- -X github.com/hostinger/api-cli/utils.Major={{ .Major }}
- -X github.com/hostinger/api-cli/utils.Minor={{ .Minor }}
- -X github.com/hostinger/api-cli/utils.Patch={{ .Patch }}
goos:
- windows
- darwin
- linux
archives:
- name_template: "hostinger-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- completions/*
wrap_in_directory: false
source:
enabled: true
name_template: 'hostinger-{{ .Version }}-source'
checksum:
name_template: "hostinger-{{ .Version }}-checksums.sha256"
#dockers:
# - dockerfile: Dockerfile.goreleaser
# image_templates:
# - "hostinger/hostinger:latest"
# - "hostinger/hostinger:{{ .Major }}-latest"
# - "hostinger/hostinger:{{ .Version }}"
release:
github:
owner: hostinger
name: api-cli
brews:
- repository:
owner: hostinger
name: homebrew-tap
directory: Formula
homepage: "https://www.hostinger.com"
description: "Hostinger API CLI"
license: "MIT"
install: |
bin.install "hostinger"
extra_install: |
bash_completion.install "completions/hostinger.bash" => "hostinger"
zsh_completion.install "completions/hostinger.zsh" => "_hostinger"
fish_completion.install "completions/hostinger.fish"
changelog:
disable: false