Skip to content

Commit

Permalink
Add release target
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaos committed Jan 11, 2020
1 parent bded294 commit ef5aa3d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ARTIFACTS_DIR=artifacts/${VERSION}
GITHUB_USERNAME=sachaos

.PHONY: install
install: prepare
go install
Expand All @@ -13,6 +16,13 @@ test: prepare
.PHONY: prepare
prepare: filter_parser.go

.PHONY: release
release: prepare
GOOS=windows GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/todoist_windows_amd64
GOOS=darwin GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/todoist_darwin_amd64
GOOS=linux GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/todoist_linux_amd64
ghr -u $(GITHUB_USERNAME) -t $(shell cat github_token) --replace ${VERSION} $(ARTIFACTS_DIR)

filter_parser.go: filter_parser.y
go get golang.org/x/tools/cmd/goyacc
goyacc -o filter_parser.go filter_parser.y
Expand Down

0 comments on commit ef5aa3d

Please sign in to comment.