-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
92 lines (86 loc) · 1.99 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
---
project_name: pwcli
version: 2
builds:
- env:
- CGO_ENABLED=0
targets:
- linux_amd64
- linux_arm
- linux_arm64
- darwin_amd64
- windows_amd64
ldflags:
- -s -w
- -X {{ .ProjectName }}/cmd.Version={{.Version}}
- -X {{ .ProjectName }}/cmd.Commit={{.ShortCommit}}
- -X {{ .ProjectName }}/cmd.Date={{ time "2006-01-02" }}
- -X {{ .ProjectName }}/cmd.Name={{.ProjectName}}
changelog:
use: git
filters:
exclude:
- '^Merge branch'
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Refactoring'
regexp: "^.*refactor[(\\w)]*:+.*$"
order: 2
- title: Others
order: 999
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-beta"
archives:
- id: archive
format: tar.gz
format_overrides:
- goos: windows
format: zip
strip_binary_directory: true
files:
- "*.md"
- LICENSE
- scripts/*
nfpms:
-
id: packages
# dont use {{ .ProjectName }} here :(
package_name: pwcli
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
# builds:
license: GPL-3
bindir: /usr/bin
vendor: Tommi2Day
maintainer: "Tommi2Day <[email protected]>"
description: |-
Toolbox for validating, storing and query encrypted passwords
formats:
- rpm
- deb
# dependencies:
provides:
# dont use {{ .ProjectName }} here :(
- pwcli
contents:
- src: "*.md"
dst: /usr/share/doc/{{ .ProjectName }}/
- src: LICENSE
dst: /usr/share/doc/{{ .ProjectName }}/
- src: scripts/*.sh
dst: /usr/bin/
release:
github:
owner: tommi2day
name: pwcli
replace_existing_draft: true
draft: true
header: |
## PWCLI Release {{ .Tag }} ({{ time "2006-01-02" }})
target_commitish: '{{ .Commit }}'