Skip to content

Commit

Permalink
Use wercker.com for saving each version binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
monochromegane committed Jul 21, 2014
1 parent 92db2e0 commit f19c684
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions wercker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
box: monochromegane/golang-xc
build:
steps:
- setup-go-workspace
- script:
name: go get
code: |
go version
godep restore
- script:
name: go test
code: |
godep go test ./...
- script:
name: goxc build & archive
code: |
GODEPPATH=`godep path`
export GOPATH="$GODEPPATH:$GOPATH"
goxc -tasks='xc archive' -bc 'linux windows darwin' -d $WERCKER_OUTPUT_DIR/ -resources-include='README*' -n pt
- script:
name: output release tag
code: |
git describe --tags --exact --match 'v*' > $WERCKER_OUTPUT_DIR/.release_tag || true
deploy:
steps:
- script:
name: restore release tag
code: |
export RELEASE_TAG=$(cat .release_tag)
- wercker/github-create-release:
token: $GITHUB_TOKEN
tag: $RELEASE_TAG
- wercker/github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/pt_linux_386.tar.gz
- wercker/github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/pt_linux_amd64.tar.gz
- wercker/github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/pt_linux_arm.tar.gz
- wercker/github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/pt_darwin_386.zip
- wercker/github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/pt_darwin_amd64.zip
- wercker/github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/pt_windows_386.zip
- wercker/github-upload-asset:
token: $GITHUB_TOKEN
file: snapshot/pt_windows_amd64.zip

0 comments on commit f19c684

Please sign in to comment.