#!/bin/bash
set -e

# setup the current repo as a package - super hax.
mkdir -p gopath/src/github.com/buildbox
ln -s `pwd` gopath/src/github.com/buildbox/agent
export GOPATH="$GOPATH:`pwd`/gopath"

echo '--- install dependencies'
go get github.com/tools/godep
godep restore

echo '--- installing github-release'
go get github.com/buildbox/github-release

echo '--- download artifacts'
mkdir -p pkg
buildbox-artifact download "pkg/*" pkg

echo '--- release'
ruby scripts/publish_release.rb

#!/bin/bash
set -e

# setup the current repo as a package - super hax.
mkdir -p gopath/src/github.com/buildbox
ln -s `pwd` gopath/src/github.com/buildbox/agent
export GOPATH="$GOPATH:`pwd`/gopath"

echo '--- install dependencies'
go get github.com/tools/godep
godep restore

echo '--- installing github-release'
go get github.com/buildbox/github-release

echo '--- download artifacts'
rm -rf pkg
mkdir -p pkg
buildbox-artifact download "pkg/*" pkg

echo '--- release'
ruby scripts/publish_release.rb

Make sure the package folder is clean before downloading artifacts to it.
Make sure the package folder is clean before downloading artifacts to
it.
