From 8437b917c8e72327d23f4658901c3513e0c625de Mon Sep 17 00:00:00 2001 From: Eugene Kalinin Date: Fri, 3 Feb 2023 11:11:41 +0300 Subject: [PATCH] goreleaser: add config --- .gitignore | 2 ++ .goreleaser.yaml | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index 25e5730..81ccb45 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ TODO.md gh-md-toc build + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..11a904f --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,29 @@ +project_name: gh-md-toc +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + main: ./cmd/gh-md-toc + goos: + - linux + - windows + - darwin + goarch: + - amd64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + - '^Makefile:' + - '^README:' + - '^gitignore:' + - '^goreleaser:'