From 416887bf1b05ff8054e15b017777d8749d387504 Mon Sep 17 00:00:00 2001 From: janus_wel Date: Tue, 24 May 2016 23:54:34 +0900 Subject: [PATCH] add settings for CircleCI --- .yangpao.toml | 9 +++++++++ README.md | 4 ++-- circle.yml | 11 +++++++++++ release_tag | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .yangpao.toml create mode 100644 circle.yml create mode 100644 release_tag diff --git a/.yangpao.toml b/.yangpao.toml new file mode 100644 index 0000000..d0bfdef --- /dev/null +++ b/.yangpao.toml @@ -0,0 +1,9 @@ +Current = "0.0.1" + +[[Files]] + Path = "README.md" + Prefix = "v" + +[[Files]] + Path = "release_tag" + Prefix = "v" diff --git a/README.md b/README.md index df21d88..68c896d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -揚炮 yangpao -============ +揚炮 yangpao v0.0.1 +=================== version number raiser for [semver](http://semver.org/) diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..987568f --- /dev/null +++ b/circle.yml @@ -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/' diff --git a/release_tag b/release_tag new file mode 100644 index 0000000..45c7a58 --- /dev/null +++ b/release_tag @@ -0,0 +1 @@ +v0.0.1