forked from beatlabs/gomodctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
63 lines (63 loc) · 1.3 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: gomodctl
before:
hooks:
# you may remove this if you don't use vgo
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- "386"
- arm64
# Path to main.go file or main package.
main: ./main.go
ldflags: -s -w -X github.com/ormanli/gomodctl/cmd.version={{.Version}}
binary: gomodctl
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
signs:
-
cmd: gpg
args:
- --output
- $signature
- --detach-sig
- $artifact
signature: ${artifact}.sig
artifacts: none
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
draft: true
brews:
-
tap:
owner: ormanli
name: gomodctl
description: "check and update go modules"
homepage: "https://github.com/ormanli/gomodctl"
folder: Formula
install: bin.install "gomodctl"
test: |
system "#{bin/gomodctl}"