machine:
  pre:
    - sudo apt-get install -y sdcc
    - go get -u github.com/tcnksm/ghr
test:
  override:
    - ./build-all.sh

deployment:
  release:
    branch: master
    commands:
      - mkdir -p output/`git describe --tags`/
      - mv output/*/*.hex output/`git describe --tags`/
      - cd output ; ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` `git describe --tags`/

test:
  override:
    - ./build-all.sh

dependencies:
  pre:
    - sudo apt-get install -y sdcc
    - go get github.com/tcnksm/ghr

deployment:
  release:
    branch: master
    commands:
      - mkdir -p output/`git describe --tags`/
      - mv output/*/*.hex output/`git describe --tags`/
      - cd output ; ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` `git describe --tags`/

Update to match ghr docs
Update to match ghr docs
