Skip to content

Commit

Permalink
Add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Takumasa Sakao committed Oct 21, 2018
1 parent 44bf858 commit 77ace05
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
.PHONY: prepare install release

ARTIFACTS_DIR=artifacts/${VERSION}
GITHUB_USERNAME=sachaos

prepare:
go get github.com/gobuffalo/packr/packr
go generate github.com/sachaos/go-life/preset

install: prepare
go install

release: prepare
GOOS=windows GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/go-life_windows_amd64
GOOS=darwin GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/go-life_darwin_amd64
GOOS=linux GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/go-life_linux_amd64
ghr -u $(GITHUB_USERNAME) -t $(shell cat github_token) --replace ${VERSION} $(ARTIFACTS_DIR)

0 comments on commit 77ace05

Please sign in to comment.