# Skipping a deployment with the pages provider because the current build is a pull request

**URL:** <https://travis-ci.community/t/skipping-a-deployment-with-the-pages-provider-because-the-current-build-is-a-pull-request/7055>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** bug\
**Created:** [January 29, 2020, 8:36pm UTC](https://travis-ci.community/t/skipping-a-deployment-with-the-pages-provider-because-the-current-build-is-a-pull-request/7055 "2020-01-29T20:36:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![batouche-dev](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/batouche-dev/32/3710_2.png) [@batouche-dev](https://travis-ci.community/u/batouche-dev)\
**Post date:** [January 29, 2020, 8:36pm UTC](https://travis-ci.community/t/skipping-a-deployment-with-the-pages-provider-because-the-current-build-is-a-pull-request/7055/1 "2020-01-29T20:36:50Z")

</div>

I want to deploy in any branch but it failure every time and a receive this message:

```auto
Skipping a deployment with the pages provider because the current build is a pull request.

```

this is the url :  
[https://travis-ci.org/batouche-dev/dashboard/builds/643532053?utm\_source=github\_status&utm\_medium=notification](https://travis-ci.org/batouche-dev/dashboard/builds/643532053?utm_source=github_status&utm_medium=notification)

and travis config:

```auto
dist: trusty
sudo: false

language: node_js
node_js:
  - "13.6.0"

addons:
    chrome: stable

cache:
  directories:
     - ./node_modules

install:
  - npm install

script:
  - npm run test:cover -- --watch=false --progress=false --browsers=ChromeHeadlessCI
  - npm run test -- --watch=false --progress=false --browsers=ChromeHeadlessCI
  - npm run e2e -- --protractor-config=./e2e/protractor-ci.conf.js

after_success:
   - npm run coveralls
    - npm run build:gh-pages:test1

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
  local_dir: gh-pages
  on:
    branch: feat/gh-pages-with-travis

```

---

<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:** [January 29, 2020, 8:45pm UTC](https://travis-ci.community/t/skipping-a-deployment-with-the-pages-provider-because-the-current-build-is-a-pull-request/7055/2 "2020-01-29T20:45:44Z")

</div>

What are you asking? As the message plainly says, and as documented in

> **[Travis CI Documentation](https://docs.travis-ci.com/user/deployment/#pull-requests)**
>
> Deployment

  
PR builds such as this will not trigger deployments. Someone (including you!) would have to run a push build.

---

<div class="post-metadata">

**Author:** ![batouche-dev](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/batouche-dev/32/3710_2.png) [@batouche-dev](https://travis-ci.community/u/batouche-dev)\
**Post date:** [January 29, 2020, 8:54pm UTC](https://travis-ci.community/t/skipping-a-deployment-with-the-pages-provider-because-the-current-build-is-a-pull-request/7055/3 "2020-01-29T20:54:06Z")

</div>

it not clear, i mean who can modify the configuration to get an automatic deploy?

---

<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:** [January 29, 2020, 9:29pm UTC](https://travis-ci.community/t/skipping-a-deployment-with-the-pages-provider-because-the-current-build-is-a-pull-request/7055/4 "2020-01-29T21:29:55Z")

</div>

If you run a push build, it would run deployment. [https://travis-ci.org/batouche-dev/dashboard/requests?utm\_medium=notification&utm\_source=github\_status](https://travis-ci.org/batouche-dev/dashboard/requests?utm_medium=notification&utm_source=github_status) shows that this feature branch’s push build requests are rejected because the branch name contains `gh-pages`.
