5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-24 18:25:40 +00:00

Try travis bintray integration (2)

This commit is contained in:
Wim 2017-07-16 21:05:29 +02:00
parent 320be5bffa
commit 717023245f

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
}