Skip to content
This repository was archived by the owner on Jun 30, 2018. It is now read-only.

Commit 713a7a1

Browse files
committed
feat: Move to goreleaser that support binary template
1 parent 5e63c67 commit 713a7a1

File tree

5 files changed

+28
-14
lines changed

5 files changed

+28
-14
lines changed

.editorconfig

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
root = true
2+
3+
; Unix-style newlines with a newline ending every file
4+
[*]
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
charset = utf-8
12+
13+
; Golang
14+
[*.go]
15+
indent_style = tab
16+
indent_size = 4
17+
18+
; YAML
19+
[*.{yaml,yml}]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[{Makefile,GNUmakefile}]
24+
indent_style = tab
25+
indent_size = 4

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ build-gox: deps fmtcheck vet
2323

2424
release:
2525
go get github.com/goreleaser/goreleaser; \
26-
scripts/release.sh; \
26+
goreleaser; \
2727

2828
deps:
2929
go get -u github.com/mitchellh/gox
@@ -45,4 +45,4 @@ vet:
4545
exit 1; \
4646
fi
4747

48-
.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile
48+
.PHONY: build test testacc vet fmt fmtcheck errcheck vendor-status test-compile
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
builds:
2-
- binary: terraform-provider-runscope_$VERSION
2+
- binary: terraform-provider-runscope_v{{.Version}}
33
goos:
44
- darwin
55
- linux
66
- windows
77
goarch:
88
- amd64
9-
hooks:
10-
post: ./scripts/goreleaser-post.sh
119
archive:
1210
format: zip
1311
files:

scripts/goreleaser-post.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/release.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)