-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
92 lines (90 loc) · 1.76 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
---
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
- go test ./...
builds:
- id: build
env:
- CGO_ENABLED=0
main: ./cmd/ccat
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
- arm
goarm: ["6", "7"]
ignore:
- goos: windows
goarch: arm
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -v
- -tags=plugins,keystore
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -X main.tags=plugins,keystore
archives:
- name_template: "{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- none*
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^update"
release:
github:
owner: batmac
name: ccat
draft: true
prerelease: auto
mode: append
header: |
## {{ .Date }}
footer: |
## NOTE
these builds are without libcurl
signs:
- artifacts: checksum
args:
- -u
- --output
- ${signature}
- --detach-sign
- ${artifact}
output: true
brews:
- name: ccatos
repository:
owner: batmac
name: homebrew-tap
branch: main
description: cat on steroids.
license: MIT
# folder: Formula
skip_upload: "false"
dependencies: []
conflicts:
- ccat
- ccrypt
test: |
system "#{bin}/ccat --version"
install: |
bin.install "ccat"
(bash_completion/"ccatos").write `#{bin}/ccat --completion bash`