Skip to content

Commit 70f8b34

Browse files
chore: use seperate script for release
1 parent d0e67e6 commit 70f8b34

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ before_script:
1111
script:
1212
- go test -v $(glide novendor)
1313
after_success:
14-
- ./semantic-release -ghr -vf -dry
15-
- export VERSION=$(cat .version)
16-
- gox -os="linux darwin windows openbsd" -ldflags="-s -w -X main.SRVERSION=$VERSION" -output="bin/{{.Dir}}_v"$VERSION"_{{.OS}}_{{.Arch}}" ./cmd/semantic-release/
17-
- ghr $(cat .ghr) bin/
14+
- ./release
1815
notifications:
1916
email: false

release

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
./semantic-release -ghr -vf
6+
export VERSION=$(cat .version)
7+
gox -ldflags="-s -w -X main.SRVERSION=$VERSION" -output="bin/{{.Dir}}_v"$VERSION"_{{.OS}}_{{.Arch}}" ./cmd/semantic-release/
8+
ghr $(cat .ghr) bin/

0 commit comments

Comments
 (0)