# Github tag creation doesn't trigger job

**URL:** <https://travis-ci.community/t/github-tag-creation-doesnt-trigger-job/3469>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [May 21, 2019, 10:57pm UTC](https://travis-ci.community/t/github-tag-creation-doesnt-trigger-job/3469 "2019-05-21T22:57:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shukriadams](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/shukriadams/32/1838_2.png) [@shukriadams](https://travis-ci.community/u/shukriadams)\
**Post date:** [May 21, 2019, 10:57pm UTC](https://travis-ci.community/t/github-tag-creation-doesnt-trigger-job/3469/1 "2019-05-21T22:57:41Z")

</div>

Creating a tag on the github website for a given project doesn’t seem to trigger a job run. I’m not creating the tag locally and pushing it as part of a commit, but creating the tag on the actual [github.com](http://github.com) website under “releases”.

My travis.yml looks like

```
jobs:
  include:
    - stage: test
      script:
      - echo "tests here"
    - stage: deploy
      if: tag IS present
      script:
      - echo "tag handler here"

```

I’ve also tried this with

```
tag: true

```

I notice that for my project’s history no tag creation on the [github.com](http://github.com) has every triggered a job run, only commits seem to do that. Is this normal?

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [May 22, 2019, 2:14pm UTC](https://travis-ci.community/t/github-tag-creation-doesnt-trigger-job/3469/2 "2019-05-22T14:14:45Z")

</div>

> [@shukriadams](#):
>
> creating the tag on the actual [github.com](http://github.com) website under “releases”.

Could you elaborate on what you are actually doing? I don’t see any option to create a tag by itself without creating a new release. If I create a new release, I see that a new build is triggered.

---

<div class="post-metadata">

**Author:** ![shukriadams](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/shukriadams/32/1838_2.png) [@shukriadams](https://travis-ci.community/u/shukriadams)\
**Post date:** [May 22, 2019, 3:07pm UTC](https://travis-ci.community/t/github-tag-creation-doesnt-trigger-job/3469/3 "2019-05-22T15:07:00Z")

</div>

Sorry for the lack of clarity, by tag I meant tag+release as yes, github merges them into a single create function.

This is the build history of the project in question : [https://travis-ci.org/shukriadams/tetrifact/builds](https://travis-ci.org/shukriadams/tetrifact/builds)  
All the builds there are for commits though, none for tag/release creation. Have I set the project up incorrectly?

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [May 22, 2019, 6:25pm UTC](https://travis-ci.community/t/github-tag-creation-doesnt-trigger-job/3469/4 "2019-05-22T18:25:34Z")

</div>

You named your tag [`test`](https://github.com/shukriadams/tetrifact/tree/test) but that name is [not included](https://github.com/shukriadams/tetrifact/blob/5ba25f885b5887d05a83eaacbf8254579375f6cb/.travis.yml#L4-L7) in the list of permitted branches, so the build request is rejected. See [https://travis-ci.org/shukriadams/tetrifact/requests](https://travis-ci.org/shukriadams/tetrifact/requests).

---

<div class="post-metadata">

**Author:** ![shukriadams](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/shukriadams/32/1838_2.png) [@shukriadams](https://travis-ci.community/u/shukriadams)\
**Post date:** [May 22, 2019, 8:24pm UTC](https://travis-ci.community/t/github-tag-creation-doesnt-trigger-job/3469/5 "2019-05-22T20:24:40Z")

</div>

Ah, I didn’t realize that tag names also counted as branches. Thanks.

---

<div class="post-metadata">

**Author:** ![shukriadams](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/shukriadams/32/1838_2.png) [@shukriadams](https://travis-ci.community/u/shukriadams)\
**Post date:** [May 22, 2019, 9:35pm UTC](https://travis-ci.community/t/github-tag-creation-doesnt-trigger-job/3469/6 "2019-05-22T21:35:31Z")

</div>

Thanks again, got it building on all tags, though it meant removing the

```
branches :

```

rule. Is it possible to keep

```
branches:	
  only:	
    - master	
    - develop

```

while at the same time allowing it to build _all_ tags within those branches?
