From d8cc4b0c806f69c494cd7c5de9a62ac7075a0fc7 Mon Sep 17 00:00:00 2001 From: Marcel Puchol Date: Thu, 4 Nov 2021 09:27:07 +0100 Subject: [PATCH] Configure goreleaser --- Makefile | 5 +++++ goreleaser.yml | 29 ++--------------------------- 2 files changed, 7 insertions(+), 27 deletions(-) diff --git a/Makefile b/Makefile index 020a320..8a0218b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ GO ?= GO15VENDOREXPERIMENT=1 go GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) GOLINTER ?= $(GOPATH)/bin/gometalinter +GORELEASER ?= $(GOPATH)/bin/goreleaser pkgs = $(shell $(GO) list ./... | grep -v /vendor/) TARGET ?= s3deploy @@ -28,3 +29,7 @@ clean: build: @echo ">> building binaries" @$(GO) build + +release: + @echo ">> building releases" + @$(GORELEASER) build diff --git a/goreleaser.yml b/goreleaser.yml index 3d1f33a..3ab9063 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -11,33 +11,8 @@ build: - amd64 - arm - arm64 -brew: - github: - owner: sequra - name: homebrew-tap - folder: Formula - homepage: "https://github.com/sequra/s3deploy" - description: "Deploy static websites to Amazon S3 with Gzip and headers support." - test: | - system "#{bin}/s3deploy", "-h" -nfpm: - formats: - - deb - vendor: "sequra" - homepage: "https://github.com/sequra/s3deploy" - maintainer: "" - description: "A powerful tool to deploy static websites to Amazon S3 with Gzip and custom headers support." - license: "MIT" - name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}" - replacements: - amd64: 64bit - arm: ARM - arm64: ARM64 - darwin: macOS - linux: Linux - windows: Windows -archive: - format: tar.gz +archives: +- format: tar.gz format_overrides: - goos: windows format: zip