Skip to content

Commit ef5aa3d

Browse files
committedJan 11, 2020
Add release target
1 parent bded294 commit ef5aa3d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
ARTIFACTS_DIR=artifacts/${VERSION}
2+
GITHUB_USERNAME=sachaos
3+
14
.PHONY: install
25
install: prepare
36
go install
@@ -13,6 +16,13 @@ test: prepare
1316
.PHONY: prepare
1417
prepare: filter_parser.go
1518

19+
.PHONY: release
20+
release: prepare
21+
GOOS=windows GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/todoist_windows_amd64
22+
GOOS=darwin GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/todoist_darwin_amd64
23+
GOOS=linux GOARCH=amd64 go build -o $(ARTIFACTS_DIR)/todoist_linux_amd64
24+
ghr -u $(GITHUB_USERNAME) -t $(shell cat github_token) --replace ${VERSION} $(ARTIFACTS_DIR)
25+
1626
filter_parser.go: filter_parser.y
1727
go get golang.org/x/tools/cmd/goyacc
1828
goyacc -o filter_parser.go filter_parser.y

0 commit comments

Comments
 (0)
Please sign in to comment.