Skip to content

Commit

Permalink
Merge branch 'setup-circleci'
Browse files Browse the repository at this point in the history
  • Loading branch information
januswel committed May 24, 2016
2 parents d2ce117 + 416887b commit a078122
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .yangpao.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Current = "0.0.1"

[[Files]]
Path = "README.md"
Prefix = "v"

[[Files]]
Path = "release_tag"
Prefix = "v"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
揚炮 yangpao
============
揚炮 yangpao v0.0.1
===================

version number raiser for [semver](http://semver.org/)

Expand Down
11 changes: 11 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
machine:
timezone: 'Asia/Tokyo'
deployment:
release:
tag: '/v(0|[1-9][0-9]*)(\.(0|[1-9][0-9]*)){2}/'
commands:
- 'go get github.com/mitchellh/gox'
- 'go get github.com/tcnksm/ghr'
- 'gox -osarch "linux/amd64 linux/arm darwin/amd64 windows/amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"'
- 'ghr -t ${GITHUB_TOKEN} -u ${USERNAME} -r ${CIRCLE_PROJECT_REPONAME} --replace $(cat release_tag) dist/'
1 change: 1 addition & 0 deletions release_tag
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.0.1

0 comments on commit a078122

Please sign in to comment.