diff --git a/.travis.yml b/.travis.yml index 26666ea..62fa7da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,13 +3,13 @@ language: go os: - linux - osx - - windows + # - windows env: - GO111MODULE=on go: - - 1.14.x + - 1.15.x install: - GO111MODULE=off go get -v github.com/codeclimate/test-reporter @@ -25,7 +25,7 @@ before_script: script: - make test - - make + - DIST_NAME="ggft_${TRAVIS_OS_NAME}" make dist after_script: - |- @@ -33,3 +33,13 @@ after_script: linux) test-reporter after-build --coverage-input-type gocov --exit-code $TRAVIS_TEST_RESULT esac + +deploy: + provider: releases + api_key: $GITHUB_TOKEN + file: "ggft*.zip" + file_glob: true + skip_cleanup: true + draft: true + on: + tags: true diff --git a/Makefile b/Makefile index 968c328..29d45e1 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,12 @@ endif ggft: go build -v -o $(OUT) -ldflags="-X 'github.com/mjslabs/ggft/cmd.version=$(VERSION)'" $(PKG) +ifeq ($(DIST_NAME),) +DIST_NAME = $(OUT) +endif .PHONY: dist dist: ggft - zip $(OUT).zip $(OUT) + zip $(DIST_NAME).zip $(OUT) .PHONY: install install: ggft