diff options
Diffstat (limited to 'ci/bintray.sh')
-rwxr-xr-x | ci/bintray.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ci/bintray.sh b/ci/bintray.sh new file mode 100755 index 00000000..8bb70176 --- /dev/null +++ b/ci/bintray.sh @@ -0,0 +1,24 @@ +#!/bin/bash +VERSION=$(git describe --tags) +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": { + "name": "Matterbridge", + "repo": "nightly", + "subject": "42wim" + }, + "version": { + "name": "$VERSION-$GOOS-$GOARCH" + }, + "files": + [ + {"includePattern": "binaries/(*)", "uploadPattern":"\$1"} + ], + "publish": true +} +EOF + |