Skip to content

Commit 185ef05

Browse files
committed
fix
1 parent 51e3648 commit 185ef05

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ go.work.sum
3232
# .vscode/
3333

3434
custom-completion-zsh
35+
# Added by goreleaser init:
36+
dist/

.goreleaser.yaml

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

0 commit comments

Comments
 (0)