-
Notifications
You must be signed in to change notification settings - Fork 2
/
shippable.yml
18 lines (18 loc) · 1.15 KB
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: go
go:
- release
env:
- secure: U37kEQRPvKHaoTaWtkUukCQ0T5P8T0uQXsPEKE5x5Aaz14ArLLcHQ8vc2RIF9bhcmyGbPNWuHtUawzDVB0zriGQJaliY0RajGRo6uGjPnfcTdUj7gAfDPzGX9cRXtHw1dAqGcpgAZVu1yIr7h0D2h/oYQzbR+E24Pkaylyj4SYtBLKHhhVQCaf85uET65uUyAGYMN3g7dG1Ovt97luuboU1rpimnsVZlDwH8qvMAeRchPI5E6MuDgLouhEkUc3bIRz2faj+56gHr1cW3NbPM/DBYyLEaXiI8uP6q522rnSHgmjBeXOv7invdYO/UNGScmwc6qscFzmL8Ja2l+THVQg==
before_install:
- export GOPATH=$SHIPPABLE_GOPATH
install:
- go get -t -d -v ./... && go build -x -o mssh ./...
script:
- cp mssh shippable/buildoutput/
- go get github.com/aktau/github-release
- tar czvf mssh-linux-amd64.tar.gz mssh
- cp mssh-linux-amd64.tar.gz shippable/buildoutput/
- $SHIPPABLE_GOPATH/bin/github-release delete --user colebrumley --repo mssh-go --tag latest
- $SHIPPABLE_GOPATH/bin/github-release release --user colebrumley --repo mssh-go --tag latest --name "Latest Build" --description "The latest Shippable CI build. Only Linux x64 available currently." --pre-release
- $SHIPPABLE_GOPATH/bin/github-release upload --user colebrumley --repo mssh-go --tag latest --name "mssh-linux-amd64.tar.gz" --file mssh-linux-amd64.tar.gz
archive: true