Skip to content

Commit

Permalink
Configure goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mpucholblasco committed Nov 4, 2021
1 parent e7ae854 commit d8cc4b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 27 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -28,3 +29,7 @@ clean:
build:
@echo ">> building binaries"
@$(GO) build

release:
@echo ">> building releases"
@$(GORELEASER) build
29 changes: 2 additions & 27 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "<Bjørn Erik Pedersen [email protected]>"
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
Expand Down

0 comments on commit d8cc4b0

Please sign in to comment.