deployment:
 release:
  tag: /[0-9]+(\.[0-9]+)*/
  owner: itzg
  commands:
   - go get github.com/mitchellh/gox
   - go get github.com/tcnksm/ghr
   - gox -ldflags "-X main.Version=$BUILD_VERSION -X main.BuildDate=$BUILD_DATE" -output "dist/ncd_{{.OS}}_{{.Arch}}"
   - ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/
deployment:
 release:
  tag: /[0-9]+(\.[0-9]+)*/
  owner: itzg
  commands:
   - go get github.com/mitchellh/gox
   - go get github.com/tcnksm/ghr
   - gox -ldflags "-X main.Version=$BUILD_VERSION -X main.BuildDate=$BUILD_DATE" -output "dist/ncd_{{.OS}}_{{.Arch}}"
   - ghr -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` dist/
Correct Github token for deploy
Correct Github token for deploy

