# .nojekyll not deploying

**URL:** <https://travis-ci.community/t/nojekyll-not-deploying/6207>\
**Category:** Deployment\
**Created:** [November 29, 2019, 7:06pm UTC](https://travis-ci.community/t/nojekyll-not-deploying/6207 "2019-11-29T19:06:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acgetchell](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/acgetchell/32/56_2.png) [@acgetchell](https://travis-ci.community/u/acgetchell)\
**Post date:** [November 29, 2019, 7:06pm UTC](https://travis-ci.community/t/nojekyll-not-deploying/6207/1 "2019-11-29T19:06:08Z")

</div>

I build documentation using Doxygen and then use Travis deploy to push it to my gh-pages branch.

> <https://github.com/acgetchell/CDT-plusplus/blob/develop/.travis.yml#L116>

Doxygen generates files with leading underscores. Jekyll processing on gh-pages will ignore these files, unless it is turned off by the presence of a `.nojekyll` file, which I create here:

> <https://github.com/acgetchell/CDT-plusplus/blob/develop/.travis.yml#L133>

The file seems to be committed and pushed with all of the others by deploy, but it does not actually show up in `gh-pages`.

[https://travis-ci.org/acgetchell/CDT-plusplus/jobs/618710913#L3722](https://travis-ci.org/acgetchell/CDT-plusplus/jobs/618710913#L3722)

The commit removes the empty file instead:

> <https://github.com/acgetchell/CDT-plusplus/commit/ca4c508739ca6ba49ebb7aa6c7eb38518fc5fd3b>

How do I get deploy to push an empty file? Or, do I need to add a character in it?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [November 30, 2019, 12:48am UTC](https://travis-ci.community/t/nojekyll-not-deploying/6207/2 "2019-11-30T00:48:02Z")

</div>

It looks like you are creating `.nojekyll` in the current directory (which is `/home/travis/build/acgetchell/CDT-plusplus`) rather than in the actual directory that you are syncing to `gh-pages` (`/home/travis/build/acgetchell/CDT-plusplus/docs/html/`).

---

<div class="post-metadata">

**Author:** ![acgetchell](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/acgetchell/32/56_2.png) [@acgetchell](https://travis-ci.community/u/acgetchell)\
**Post date:** [December 2, 2019, 2:24am UTC](https://travis-ci.community/t/nojekyll-not-deploying/6207/3 "2019-12-02T02:24:19Z")

</div>

Yes, that was it.

Thank you!
