From 0ff943781be0e3156b69c6ce445586e1c9389476 Mon Sep 17 00:00:00 2001 From: zhshch2002 Date: Mon, 30 Mar 2020 09:48:15 +0800 Subject: [PATCH] add:.goreleaser.yml --- .gitignore | 1 + .goreleaser.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore index fb01a0f..b1fd44b 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ caddywebp.go go.mod go.sum index.html +dist diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..6a2544d --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,37 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: +builds: + - binary: caddy + main: ./caddy/main.go + goos: + - windows + - darwin + - linux + - freebsd + goarch: + - amd64 + - 386 + - arm + - arm64 + goarm: + - 6 + - 7 +archives: + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'