Skip to content

Commit 02bdb8f

Browse files
committed
release task
1 parent 73a7ad3 commit 02bdb8f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ deps:
1111
go get -u github.com/progrium/gh-release/...
1212
go get || true
1313

14-
test: build
14+
test:
1515
build/$(shell uname -s)/basht tests/meta.bash
1616

17-
.PHONY: build
17+
release:
18+
rm -rf release && mkdir release
19+
tar -zcf release/$(NAME)_$(VERSION)_Linux_$(shell uname -m).tgz -C build/Linux $(NAME)
20+
tar -zcf release/$(NAME)_$(VERSION)_Darwin_$(shell uname -m).tgz -C build/Darwin $(NAME)
21+
gh-release create progrium/$(NAME) $(VERSION) \
22+
$(shell git rev-parse --abbrev-ref HEAD) v$(VERSION)
23+
24+
.PHONY: build release

0 commit comments

Comments
 (0)