-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
61 lines (61 loc) · 1.46 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
project_name: ilc
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
goarm:
- "5"
- "6"
- "7"
ldflags:
- "-s -w -X main.BuildDate={{ .Date }} -X main.Version={{ .Version }} -X main.Commit={{.Commit}}"
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: binary
brews:
- directory: Formula
homepage: "https://github.com/evilmarty/ilc"
description: "Simplify creating command-line utilities"
license: "GPL"
custom_block: |
head "https://github.com/evilmarty/ilc.git", branch: "main"
install: |
bin.install Dir["*"].first => "ilc"
test: |
system "#{bin}/ilc", "--version"
repository:
owner: evilmarty
name: homebrew-ilc
branch: main
release:
name_template: "{{ .Tag }}"
target_commitish: "{{ .Commit }}"
github:
owner: evilmarty
name: ilc
checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
algorithm: sha256
snapshot:
name_template: "{{ incpatch .Version }}-devel"
changelog:
use: git
sort: asc
filters:
exclude:
- "README"
- "^docs:"
- "^test:"
# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj