Skip to content

Commit

Permalink
chore: use seperate script for release
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Mar 8, 2017
1 parent d0e67e6 commit 70f8b34
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions release
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 70f8b34

Please sign in to comment.