From 8bd1d9e52723d2dfe121ff826f16c1ca34f7173c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20J=C3=BCrgensmeyer?= Date: Sun, 14 Jul 2019 09:11:49 +0200 Subject: [PATCH] Add goreleaser --- .goreleaser.yml | 82 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..5dbb8cd --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,82 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +project_name: multicode + +before: + hooks: + - go mod download +builds: +- + main: ./cmd/decode/main.go + env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + - freebsd + - openbsd + - netbsd + - solaris + # -plan9 + - dragonfly + - windows + goarch: + - 386 + - amd64 + - arm + - arm64 + # - ppc64 + # - ppc64le + # - mips + # - mipsle + # - mips64 + # - mips64le + goarm: + - 6 + - 7 + +archive: + wrap_in_directory: true + format_overrides: + - goos: windows + format: zip + files: + - LICENSE + - README.md + + +checksum: + name_template: 'checksums.txt' + +snapshot: + name_template: "{{ .Tag }}-next-{{.Commit}}" + +nfpm: + maintainer: Simon Jürgensmeyyer + homepage: https://github.com/sj14/multicode/ + description: Decode hex, base64 and protobuf recursively with a single command + license: MIT + formats: + - deb + - rpm + +brew: + # name: dbbench + # folder: homebrew-tap + github: + owner: sj14 + name: homebrew-tap + description: Decode hex, base64 and protobuf recursively with a single command + +release: + github: + owner: sj14 + name: multicode + disable: false + draft: false + prerelease: true + +changelog: + filters: + exclude: + - typo