From 70f8b34bacd4b96d0688cdff977364e95aec5191 Mon Sep 17 00:00:00 2001 From: Christoph Witzko Date: Wed, 8 Mar 2017 23:10:18 +0100 Subject: [PATCH] chore: use seperate script for release --- .travis.yml | 5 +---- release | 8 ++++++++ 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 release diff --git a/.travis.yml b/.travis.yml index 75f0bce9..eea911b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,9 +11,6 @@ before_script: script: - go test -v $(glide novendor) after_success: - - ./semantic-release -ghr -vf -dry - - export VERSION=$(cat .version) - - gox -os="linux darwin windows openbsd" -ldflags="-s -w -X main.SRVERSION=$VERSION" -output="bin/{{.Dir}}_v"$VERSION"_{{.OS}}_{{.Arch}}" ./cmd/semantic-release/ - - ghr $(cat .ghr) bin/ + - ./release notifications: email: false diff --git a/release b/release new file mode 100755 index 00000000..7e6779a8 --- /dev/null +++ b/release @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +./semantic-release -ghr -vf +export VERSION=$(cat .version) +gox -ldflags="-s -w -X main.SRVERSION=$VERSION" -output="bin/{{.Dir}}_v"$VERSION"_{{.OS}}_{{.Arch}}" ./cmd/semantic-release/ +ghr $(cat .ghr) bin/