Skip to content

Commit d8cc4b0

Browse files
committed
Configure goreleaser
1 parent e7ae854 commit d8cc4b0

File tree

2 files changed

+7
-27
lines changed

2 files changed

+7
-27
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GO ?= GO15VENDOREXPERIMENT=1 go
22
GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
33
GOLINTER ?= $(GOPATH)/bin/gometalinter
4+
GORELEASER ?= $(GOPATH)/bin/goreleaser
45
pkgs = $(shell $(GO) list ./... | grep -v /vendor/)
56
TARGET ?= s3deploy
67

@@ -28,3 +29,7 @@ clean:
2829
build:
2930
@echo ">> building binaries"
3031
@$(GO) build
32+
33+
release:
34+
@echo ">> building releases"
35+
@$(GORELEASER) build

goreleaser.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,8 @@ build:
1111
- amd64
1212
- arm
1313
- arm64
14-
brew:
15-
github:
16-
owner: sequra
17-
name: homebrew-tap
18-
folder: Formula
19-
homepage: "https://github.com/sequra/s3deploy"
20-
description: "Deploy static websites to Amazon S3 with Gzip and headers support."
21-
test: |
22-
system "#{bin}/s3deploy", "-h"
23-
nfpm:
24-
formats:
25-
- deb
26-
vendor: "sequra"
27-
homepage: "https://github.com/sequra/s3deploy"
28-
maintainer: "<Bjørn Erik Pedersen bjorn.erik.pedersen@gmail.com>"
29-
description: "A powerful tool to deploy static websites to Amazon S3 with Gzip and custom headers support."
30-
license: "MIT"
31-
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}"
32-
replacements:
33-
amd64: 64bit
34-
arm: ARM
35-
arm64: ARM64
36-
darwin: macOS
37-
linux: Linux
38-
windows: Windows
39-
archive:
40-
format: tar.gz
14+
archives:
15+
- format: tar.gz
4116
format_overrides:
4217
- goos: windows
4318
format: zip

0 commit comments

Comments
 (0)