Skip to content

Commit 185a117

Browse files
author
Thinh Nguyen
committed
Add github releases.
1 parent 23bfaec commit 185a117

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

circle.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ machine:
55
post:
66
- gvm install go1.4.2 --name=stable --binary --with-protobuf --with-build-tools
77
- gvm use stable --default
8+
# Gox -- cross-compile
89
- go get github.com/mitchellh/gox
910
- gox -build-toolchain -os="linux darwin" -arch="amd64" -cgo
11+
# gh-release
12+
- curl -L https://github.com/progrium/gh-release/releases/download/v2.2.0/gh-release_2.2.0_linux_x86_64.tgz | tar -xz
13+
- chmod +x gh-release && sudo mv gh-release /usr/local/bin/
1014

1115
dependencies:
1216
pre:
@@ -20,4 +24,7 @@ test:
2024
- godep go test -v ./...
2125
post:
2226
- gox -os="linux darwin" -arch="amd64"
23-
- mv go-adx-parser_* $CIRCLE_ARTIFACTS/
27+
- mkdir $CIRCLE_ARTIFACTS/release
28+
- mv go-adx-parser_* $CIRCLE_ARTIFACTS/release/
29+
- gh-release create taik/go-adx-parser $CIRCLE_BUILD_NUM:
30+
pwd: $CIRCLE_ARTIFACTS

0 commit comments

Comments
 (0)