version: 2
executorType: docker
containerInfo:
  - image: golang:1.8
stages:
  build:
    workDir: /go/src/github.com/itzg/restify
    steps:
      - type: checkout
      - type: shell
        command: |
          go get
          go install
      - type: deploy
        command: |
          tag=$(git describe --exact-match --tags)
          if [ $? = 0 ]; then
            go get github.com/mitchellh/gox
            go get github.com/tcnksm/ghr
            CGO_ENABLED=0 gox -ldflags "-X main.Version=$BUILD_VERSION -X main.BuildDate=$BUILD_DATE" \
              -output "dist/${CIRCLE_PROJECT_REPONAME}_{{.OS}}_{{.Arch}}"
            ghr -u $CIRCLE_USERNAME -r restify --replace $tag dist/
          fi

version: 2
executorType: docker
containerInfo:
  - image: golang:1.8
stages:
  build:
    workDir: /go/src/github.com/itzg/restify
    steps:
      - type: checkout
      - type: shell
        command: |
          go get
          go install
      - type: deploy
        command: |
          tag=$(git describe --exact-match --tags)
          if [ $? = 0 ]; then
            go get github.com/mitchellh/gox
            go get github.com/tcnksm/ghr
            CGO_ENABLED=0 gox -ldflags "-X main.Version=$BUILD_VERSION -X main.BuildDate=$BUILD_DATE" \
              -output "dist/restify_{{.OS}}_{{.Arch}}"
            ghr -u $CIRCLE_USERNAME -r restify --replace $tag dist/
          fi

Fix output name in gox
Fix output name in gox

