Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 826c81e

Browse files
committed
Add binary releases with goreleaser
1 parent c6cab34 commit 826c81e

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
asprom
2+
dist/

.goreleaser.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
builds:
2+
- binary: asprom
3+
goos:
4+
- linux
5+
- darwin
6+
goarch:
7+
- amd64
8+
archive:
9+
files:
10+
- LICENSE
11+
wrap_in_directory: true
12+
release:
13+
github:
14+
owner: alicebob
15+
name: asprom

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: all build test
1+
.PHONY: all build test release
22

33
all: build test
44

@@ -7,3 +7,6 @@ build:
77

88
test:
99
go test
10+
11+
release:
12+
goreleaser --rm-dist

0 commit comments

Comments
 (0)