title: Using Travis to deploy to GitHub and build Tag
body: <p>I am struggling for some time on how to use Travis-CI to build and deploy a tag to GitHub.
  I find some information about that on <a href="https://stackoverflow.com/questions/21628642/call-github-api-with-travis-to-build-tag">this question</a>, but it is not very clear and it is also not working for me.</p>
  
  <p>I created a new Release version 0.0.0 on gitHub and I am using Scala with Play Framework and my <code>.travis.yml</code> file is as follows:</p>
  
  <pre><code>language: scala
  scala:
  - 2.10.4
  jdk:
  - openjdk7
  
  services:
  - postgresql
  
  env:
  - PLAY_VERSION=2.0.2 DATABASE_USER=postgres DATABASE_PWD='' DATABASE_URL=jdbc:postgresql:testdb  BUILD_KEY=xxxxxxxxxxxxxxxxxxxxxxx
  
  before_script:
  - psql -c 'create database testdb;' -U postgres
  - wget http://download.playframework.org/releases/play-${PLAY_VERSION}.zip
  - unzip -q play-${PLAY_VERSION}.zip
  - sudo apt-get install jq
  script:
  - sbt test
  after_success:
    - play-${PLAY_VERSION}/play dist
    - 'ASSETID=$(curl -s -H "Authorization: token ${BUILD_KEY}" "https://api.github.com/repos/Company/spinsurstaging/releases/456729/assets" | jq ".[0].id")'
    - 'curl -XDELETE -s -H "Authorization: token ${BUILD_KEY}" "https://api.github.com/repos/Company/spinsurstaging/releases/assets/$ASSETID"'
    - 'curl -XPOST -s -H "Authorization: token ${BUILD_KEY}" -H "Content-Type: application/zip" --data-binary @./spinsurstaging-0.0-SNAPSHOT.zip "https://uploads.github.com/repos/Company/spinsurstaging/releases/456729/assets?name= spinsurstaging.zip"'
  
  notifications:
  email: false
  
  deploy:
    provider: heroku
    api_key: "${HEROKU_KEY}"
    app: spinsurstaging
  </code></pre>
  
  <p>Main question is: How to make it work? Is something wrong?
  And also: I didn't understand how I will post the file <code>spinsurstaging-0.0-SNAPSHOT.zip</code> as a release to github. Where is this file coming from? Is there a standard for this?
  Is there a better way to do that?</p>
  
  <p>Thank you in advance for helping me out with this issue.</p>