title: How to deploy to github releases from travis
body: <p>I have some repository with a electron-js project. I'm trying to setup build and deploy to github releases from travis CI.</p>
  
  <p>I have next config:</p>
  
  <pre><code>language: node_js
  
  node_js:
    - "8"
  
  before_install:
    - cd app
  
  install:
    - npm install
  
  os:
    - linux
    - osx
  
  env:
    - TARGET_ARCH=x64
  
  script:
    - npm run dist
  
  branches:
    only:
      - master
  
  deploy:
    provider: releases
    skip_cleanup: true
    api_key: $GH_TOKEN
  </code></pre>
  
  <p>Travis successfully builds app, but didn't upload artifacts to github releases.
  As I understood the <a href="https://docs.travis-ci.com/user/deployment/releases/" rel="nofollow noreferrer">documentation</a>, It should create a new release with tag <code>untagged-*</code> and upload files to it.
  Now I have this messages in build log:</p>
  
  <blockquote>
    <p>skipped publishing file=Cromberg_1.2.1_amd64.deb reason=existing type
    not compatible with publishing type tag=v1.2.1 version=1.2.1
    existingType=release publishingType=draft</p>
  </blockquote>
  
  <p><code>1.2.1</code> is a previous tag. What am I doing wrong?</p>
  
  <p>I want to automatically build and creating releases with artifacts on every commit with tags in master branch. But now I just trying to setup deploy on any event.</p>