-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yaml
44 lines (39 loc) · 1.1 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
# Copyright (c) Bruno Schaatsbergen
# SPDX-License-Identifier: MIT
project_name: "cidr"
# before are hooks that will be run before any builds are done, so good to put install scripts and stuff that your builds need here
before:
hooks:
# Remove unused packaged from the build process
- go mod tidy
- go generate
builds:
- main: ./main.go
binary: cidr
goos: ["linux", "darwin", "windows"]
goarch: ["386", "amd64", "arm64"]
ldflags:
- -s -w -X "github.com/bschaatsbergen/cidr/cmd.version={{.Version}}"
env:
- CGO_ENABLED=0
changelog:
sort: "asc"
filters:
exclude: ["^docs:", "demo", "^hugo:", "Merge pull request", "Merge branch"]
brews:
- tap:
owner: bschaatsbergen
name: homebrew-cidr
name: cidr
homepage: "https://github.com/bschaatsbergen/cidr"
description: "CLI to perform various actions on CIDR ranges"
license: "MIT"
skip_upload: auto
commit_author:
name: Bruno Schaatsbergen
email: [email protected]
folder: Formula
install: |-
bin.install "cidr"
test: |
system "#{bin}/cidr -v"