From 717023245f3a22dad6099f86c6b2a058005314fc Mon Sep 17 00:00:00 2001
From: Wim <wim@42.be>
Date: Sun, 16 Jul 2017 21:05:29 +0200
Subject: Try travis bintray integration (2)

---
 ci/bintray.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'ci')

diff --git a/ci/bintray.sh b/ci/bintray.sh
index 8bb70176..0d3efa6e 100755
--- a/ci/bintray.sh
+++ b/ci/bintray.sh
@@ -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
 }
-- 
cgit v1.2.3