-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
104 lines (104 loc) · 2.51 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# https://goreleaser.com
builds:
# Path to main.go file or main package (default: .)
- main: ./cmd/dot
# binary: dot
# flags:
# - -tags
# - dev
# ldflags:
# - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
env:
- CGO_ENABLED=0
goos: # https://golang.org/doc/install/source#environment
- darwin
# - freebsd
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
# goarm:
# - 6
# - 7
# hooks:
# pre:
# post:
git:
short_hash: true
snapshot:
# Default is "SNAPSHOT-{{.Commit}}"
name_template: "{{ .Tag }}-next"
archive:
# format: binary # tar.gz (default), zip
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
# replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
# files:
# - none* # https://github.com/goreleaser/goreleaser/issues/602
# hooks: {}
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
# sign:
# signature: "${artifact}.sig"
# cmd: gpg
# args: ["-u", "<key id, fingerprint, email, ...>", "--output", "${signature}", "--detach-sign", "${artifact}"]
# args: ["--output", "${signature}", "--detach-sign", "${artifact}"]
# artifacts: checksum # checksum, all, none
checksum:
name_template: "checksums.txt"
brew:
name: dot
github:
owner: LEI
name: homebrew-dot
# download_strategy:
# commit_author:
# name:
# email:
# folder: Formula
# caveats: ""
homepage: "https://github.com/LEI/dot"
# description: ""
dependencies:
# - curl
- git
# - bash
# conflicts: []
# plist: |
# test: |
# install (default: bin.install "program"°
nfpm:
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
# formats:
# - deb
# - rpm
dependencies:
- git
# - bash
# recommends/suggests/conflicts
# overrides:
# rpm:
# replacements:
# amd64: x86_64
# name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Arch }}"
# files:
# "tmp/man.gz": "/usr/share/man/man8/app.8.gz"
# config_files:
# "tmp/app_generated.conf": "/etc/app-rpm.conf"
# scripts:
# preinstall: "scripts/preinstall-rpm.sh"
# snapcraft:
# name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"