Skip to content

Commit

Permalink
Add circle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kentaro-m committed May 5, 2017
1 parent e9be560 commit 0eced20
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
machine:
timezone:
Asia/Tokyo
environment:
GODIST: "go1.8.linux-amd64.tar.gz"
post:
- mkdir -p downloads
- test -e downloads/$GODIST || curl -o downloads/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf downloads/$GODIST
deployment:
release:
tag: /v[0-9]+\.[0-9]+\.[0-9]+/
commands:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
- gox -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/

0 comments on commit 0eced20

Please sign in to comment.