Skip to content

Commit 77ace05

Browse files
author
Takumasa Sakao
committed
Add release script
1 parent 44bf858 commit 77ace05

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
.PHONY: prepare install release
2+
3+
ARTIFACTS_DIR=artifacts/${VERSION}
4+
GITHUB_USERNAME=sachaos
5+
16
prepare:
27
go get github.com/gobuffalo/packr/packr
38
go generate github.com/sachaos/go-life/preset
49

510
install: prepare
611
go install
12+
13+
release: prepare
14+
GOOS=windows GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/go-life_windows_amd64
15+
GOOS=darwin GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/go-life_darwin_amd64
16+
GOOS=linux GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/go-life_linux_amd64
17+
ghr -u $(GITHUB_USERNAME) -t $(shell cat github_token) --replace ${VERSION} $(ARTIFACTS_DIR)

0 commit comments

Comments
 (0)