summaryrefslogtreecommitdiffstats
path: root/ci/bintray.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/bintray.sh')
-rwxr-xr-xci/bintray.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/ci/bintray.sh b/ci/bintray.sh
index b0fb7d6a..c7e8a81e 100755
--- a/ci/bintray.sh
+++ b/ci/bintray.sh
@@ -1,5 +1,8 @@
-#!/bin/bash
-go version | grep go1.11 || exit
+#!/usr/bin/env bash
+set -u -e -x -o pipefail
+
+go version | grep go1.12 || exit
+
VERSION=$(git describe --tags)
mkdir ci/binaries
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X main.githash=$(git log --pretty=format:'%h' -n 1)" -o ci/binaries/matterbridge-$VERSION-windows-amd64.exe