Fix and improve bintray CI script

This commit is contained in:
Duco van Amstel
2019-03-31 18:01:58 +01:00
parent 402880505a
commit 3f7e1b05b4

View File

@@ -1,5 +1,9 @@
#!/bin/bash
go version | grep go1.11 || exit
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