-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.goreleaser.yml
79 lines (79 loc) · 2.14 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
version: 2
project_name: gtree
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- id: gtree
main: ./cmd/gtree
binary: gtree
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
goos:
- darwin
- windows
env:
- CGO_ENABLED=0
- id: gtree-linux
main: ./cmd/gtree
binary: gtree
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Revision={{.ShortCommit}}
goos:
- linux
env:
- CGO_ENABLED=0
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- CREDITS
release:
prerelease: auto
brews:
- repository:
owner: ddddddO
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
directory: Formula
homepage: "https://github.com/ddddddO/gtree"
description: "This CLI uses Markdown to generate directory trees and directories itself, and also verifies directories."
license: "BSD-2-Clause"
scoops:
- repository:
owner: ddddddO
name: scoop-bucket
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/ddddddO/gtree/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://github.com/ddddddO/gtree"
description: "This CLI uses Markdown to generate directory trees and directories itself, and also verifies directories."
license: "BSD-2-Clause"
nfpms:
- id: gtree-nfpms
file_name_template: "{{ .ProjectName }}_{{ .Version }}-1_{{ .Arch }}"
builds:
- gtree-linux
homepage: https://github.com/ddddddO/gtree
maintainer: ddddddO <[email protected]>
description: This CLI uses Markdown to generate directory trees and directories itself, and also verifies directories.
license: BSD-2-Clause
formats:
- deb
- rpm
- apk
bindir: /usr/bin
epoch: 1