releasing: reverse build order

Do linux last, so my go install isn't messed up. Use gh-release from
PATH.
This commit is contained in:
Miek Gieben 2016-09-18 14:25:47 +01:00
parent 338b77667b
commit a8fb01bfd2

View file

@ -28,8 +28,8 @@ all: build release
.PHONY: build
build:
@echo Releasing: $(VERSION)
mkdir -p build/Linux && CGO_ENABLED=0 GOOS=linux go build -o build/Linux/$(NAME)
mkdir -p build/Darwin && CGO_ENABLED=0 GOOS=darwin go build -o build/Darwin/$(NAME)
mkdir -p build/Linux && CGO_ENABLED=0 GOOS=linux go build -o build/Linux/$(NAME)
.PHONY: release
@ -37,7 +37,7 @@ release:
rm -rf release && mkdir release
tar -zcf release/$(NAME)_$(VERSION)_linux_$(ARCH).tgz -C build/Linux $(NAME)
tar -zcf release/$(NAME)_$(VERSION)_darwin_$(ARCH).tgz -C build/Darwin $(NAME)
build/$(shell uname)/gh-release create $(GITHUB)/$(NAME) $(VERSION)
gh-release create $(GITHUB)/$(NAME) $(VERSION)
.PHONY: clean
clean: