Skip to content

Commit 9744866

Browse files
committed
testing goreleaser
1 parent e1ec92c commit 9744866

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313

1414
# binary
1515
vl
16+
17+
dist/

.goreleaser.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
builds:
8+
- env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- linux
12+
- windows
13+
- darwin
14+
main: ./cmd/vl
15+
16+
archives:
17+
- format: tar.gz
18+
# this name template makes the OS and Arch compatible with the results of uname.
19+
name_template: >-
20+
{{ .ProjectName }}_
21+
{{- title .Os }}_
22+
{{- if eq .Arch "amd64" }}x86_64
23+
{{- else if eq .Arch "386" }}i386
24+
{{- else }}{{ .Arch }}{{ end }}
25+
{{- if .Arm }}v{{ .Arm }}{{ end }}
26+
# use zip for windows archives
27+
format_overrides:
28+
- goos: windows
29+
format: zip
30+
checksum:
31+
name_template: 'checksums.txt'
32+
snapshot:
33+
name_template: "{{ incpatch .Version }}-next"
34+
changelog:
35+
sort: asc
36+
filters:
37+
exclude:
38+
- '^docs:'
39+
- '^test:'
40+
41+
# The lines beneath this are called `modelines`. See `:help modeline`
42+
# Feel free to remove those if you don't want/use them.
43+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
44+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

0 commit comments

Comments
 (0)