File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ machine :
2+ pre :
3+ # Use newer golang version
4+ - sudo mv /usr/local/go /usr/local/go-1.6.2
5+ - wget -q -O /tmp/go1.7.3.tgz https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
6+ - sudo tar -xzf /tmp/go1.7.3.tgz -C /usr/local
7+
8+ checkout :
9+ post :
10+ - git fetch --tags && git tag
11+
12+ deployment :
13+ release :
14+ branch : master
15+ commands :
16+ - echo "-X main.Version=$(git describe --tags) -X main.BuildDate=$(date -u '+%Y/%m/%d-%H:%M:%S')"
17+ - go get github.com/mitchellh/gox
18+ - go get -u github.com/tcnksm/ghr
19+ - gox -ldflags "-X main.Version=$(git describe --tags) -X main.BuildDate=$(date -u '+%Y/%m/%d-%H:%M:%S')" -output "dist/ncd_{{.OS}}_{{.Arch}}"
20+ - ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/
You can’t perform that action at this time.
0 commit comments