-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
97 lines (89 loc) · 1.97 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
version: 2
before:
hooks:
- mkdir -p ./man
- go run main.go man ./man
builds:
- binary: seed
main: .
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/jpwallace22/seed/internal/version.Version={{.Version}}
ignore:
- goos: windows
goarch: arm64 # Windows ARM64 might not be needed yet
hooks:
pre: go mod tidy
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- .Arch }}
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
wrap_in_directory: true
checksum:
name_template: "checksums.txt"
release:
prerelease: auto
draft: false
make_latest: true # Marks as "Latest" on GitHub
brews:
- name: seed
repository:
owner: jpwallace22
name: homebrew-seed
homepage: "https://github.com/jpwallace22/seed"
description: "Plant the seeds of your directory tree 🌱"
license: "MIT"
test: |
system "#{bin}/seed --version"
install: |
bin.install "seed"
system "#{bin}/seed", "man", man1
nfpms:
- package_name: seed
vendor: Justin Wallaced
homepage: https://github.com/jpwallace22/seed
maintainer: Justin Wallace <jpwallace22@gmail.com>
description: Plant the seeds of your directory tree 🌱
license: MIT
section: utils
priority: optional
formats:
- deb # For Debian/Ubuntu
- rpm # For RHEL/Fedora
- archlinux # For Arch Linux
contents:
- src: ./LICENSE
dst: /usr/share/doc/seed/LICENSE
- src: ./man/seed.1
dst: /usr/share/man/man1/seed.1
file_info:
mode: 0644
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- "^chore:"
- "^refactor:"
- "^WIP:"
- Merge pull request
- Merge branch