Try travis bintray integration (2)

This commit is contained in:
Wim 2017-07-16 21:05:29 +02:00
parent 320be5bffa
commit 717023245f
1 changed files with 3 additions and 4 deletions

View File

@ -1,9 +1,8 @@
#!/bin/bash
VERSION=$(git describe --tags)
mkdir ci/binaries
go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-$GOOS-$GOARCH
cd ci
mkdir binaries
go build -x -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1) -o binaries/matterbridge-$VERSION-$GOOS-$GOARCH
cat > deploy.json <<EOF
{
"package": {
@ -16,7 +15,7 @@ cat > deploy.json <<EOF
},
"files":
[
{"includePattern": "binaries/(*)", "uploadPattern":"\$1"}
{"includePattern": "binaries/(.*)", "uploadPattern":"\$1"}
],
"publish": true
}