# Pushing tag does not trigger deployment to github releases

**URL:** <https://travis-ci.community/t/pushing-tag-does-not-trigger-deployment-to-github-releases/3098>\
**Category:** Deployment\
**Created:** [April 20, 2019, 4:20pm UTC](https://travis-ci.community/t/pushing-tag-does-not-trigger-deployment-to-github-releases/3098 "2019-04-20T16:20:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![realcr](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/realcr/32/1637_2.png) [@realcr](https://travis-ci.community/u/realcr)\
**Post date:** [April 20, 2019, 4:20pm UTC](https://travis-ci.community/t/pushing-tag-does-not-trigger-deployment-to-github-releases/3098/1 "2019-04-20T16:20:26Z")

</div>

Hi, I want to deploy a release on github every time I push a tag on master. I set up the relevant `deploy` parts in .travis.yml, but whenever I push a tag using:

```bash
git tag -a v0.1.0.check_deploy
git push --tags

```

Nothing noticeable happens. I checked the build list but couldn’t find any new builds. This problem is very difficult for me to debug because I can’t find any logs that explain what happens (or what doesn’t happen).

I also tried to open test branches and put tags on those branches, but no luck there too: nothing noticeable happens.

The repository (freedomlayer/offst) moved at some point to [travis-ci.com](http://travis-ci.com), although it is a public repository. Could this be related to the issue?

My .travis.yml file could be [found here](https://github.com/freedomlayer/offst/blob/cd2e599078a1e0e0e59408e4dd2a2277d29fdc38/.travis.yml). I include here what I believe to be the relevant part, but I might be wrong, and it could be that something else in the .travis.yml file causes the issue.

```auto
before_deploy: travis/before_deploy.sh
deploy:
  provider: releases
  api_key:
    secure: [omitted]
  file: $HOME/deployment/${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz
  skip_cleanup: true
  on:
    tags: true
    repo: freedomlayer/offst
    branch: master
branches:
  only:
    # Pushes and PR to the master branch
    - master
    # Ruby regex to match tags. Required, or travis won't trigger deploys when
    # a new tag is pushed. Version tags should be of the form: v0.1.0
- /^v\d+\.\d+\.\d+.*$/

```

Any help is appreciated!

---

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [April 20, 2019, 7:18pm UTC](https://travis-ci.community/t/pushing-tag-does-not-trigger-deployment-to-github-releases/3098/2 "2019-04-20T19:18:57Z")

</div>

Sorry for the troubles you are running into!

Looking at [your latest build requests](https://travis-ci.com/freedomlayer/offst/requests) it seems “push” builds are disabled on your repository which might explain the issue here.

Could you try to re-enable them [in your repository settings](https://travis-ci.com/freedomlayer/offst/settings) and push a new tag to see if it helps?

---

<div class="post-metadata">

**Author:** ![realcr](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/realcr/32/1637_2.png) [@realcr](https://travis-ci.community/u/realcr)\
**Post date:** [April 22, 2019, 7:10am UTC](https://travis-ci.community/t/pushing-tag-does-not-trigger-deployment-to-github-releases/3098/3 "2019-04-22T07:10:16Z")

</div>

@dominic: Thanks, it worked! I think I would have never came up with that solution myself.  
What an adventure, I dedicate you my first ever travis release: [https://github.com/freedomlayer/offst/releases/](https://github.com/freedomlayer/offst/releases/)

---

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [April 22, 2019, 12:57pm UTC](https://travis-ci.community/t/pushing-tag-does-not-trigger-deployment-to-github-releases/3098/4 "2019-04-22T12:57:37Z")

</div>

Glad to hear it, @realcr, and thanks for the honor!

---

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [April 22, 2019, 12:57pm UTC](https://travis-ci.community/t/pushing-tag-does-not-trigger-deployment-to-github-releases/3098/5 "2019-04-22T12:57:46Z")

</div>


