-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
116 lines (96 loc) · 2.51 KB
/
.goreleaser.yaml
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
105
106
107
108
109
110
111
112
113
114
115
116
version: 2
before:
hooks:
- go mod tidy
builds:
- id: concurrenthash
main: ./cmd/main.go
env:
- CGO_ENABLED=0
binary: concurrenthash
ldflags:
- -s -w -X main.build={{.Version}}
goos:
- freebsd
- windows
- darwin
- linux
- js
goarch:
- amd64
- arm64
release:
github:
owner: kmulvey
name: concurrenthash
ids:
- concurrenthash
# Whether to remove existing draft releases with the same name before creating
replace_existing_draft: true
# Whether to remove an artifact that already exists.
replace_existing_artifacts: true
archives:
- id: dist
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
# note that this is an array of nfpm configs
- # ID of the nfpm config, must be unique.
id: concurrenthash
package_name: concurrenthash
builds:
- concurrenthash
# Your app's vendor.
vendor: Kevin Mulvey
# Your app's homepage.
homepage: https://github.com/kmulvey/concurrenthash
# Your app's maintainer (probably you).
maintainer: Drummer <drum-roll@example.com>
# Your app's description.
description: |-
Threaded hashing for large files.
# Your app's license.
license: MIT
# Formats to be generated.
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
provides:
- concurrenthash
# Path that the binaries should be installed.
# Default: '/usr/bin'
bindir: /usr/bin
changelog: ./changelog.yml
# Custom configuration applied only to the RPM packager.
rpm:
group: root
compression: lzma
# The package is signed if a key_file is set
#signature:
# PGP secret key file path (can also be ASCII-armored).
# The passphrase is taken from the environment variable
# `$NFPM_ID_RPM_PASSPHRASE` with a fallback to `$NFPM_ID_PASSPHRASE`,
# where ID is the id of the current nfpm config.
# The id will be transformed to uppercase.
# E.g. If your nfpm id is 'default' then the rpm-specific passphrase
# should be set as `$NFPM_DEFAULT_RPM_PASSPHRASE`
#
# Templates: allowed
#key_file: "/home/kmulvey/keys/sec.gpg"