This commit is contained in:
Maschell 2018-09-15 13:28:55 +02:00
parent c1dc93b882
commit 06a6c9e063

View File

@ -33,9 +33,11 @@ jobs:
- run:
command: |
mvn dependency:go-offline
sudo add-apt-repository ppa:gophers/archive
sudo apt-get update
sudo apt-get install golang-1.10-go
sudo apt-get -y upgrade
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
sudo tar -xvf go1.10.linux-amd64.tar.gz
sudo mv go /usr/local
- save_cache:
paths:
@ -47,8 +49,10 @@ jobs:
- deploy:
name: Deploy
command: |
mkdir ~/go
mkdir ~/go
export GOPATH=~/go
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
go get github.com/tcnksm/ghr
ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -prerelease -b 'Nightly release - Use caution!' `echo "v0.0.1-nightly-$(git rev-parse --short=7 HEAD)"` ci/