# GitHub pages deployment fails with "missing github\_token"

**URL:** <https://travis-ci.community/t/github-pages-deployment-fails-with-missing-github-token/5955>\
**Category:** Deployment\
**Created:** [November 15, 2019, 5:18am UTC](https://travis-ci.community/t/github-pages-deployment-fails-with-missing-github-token/5955 "2019-11-15T05:18:25Z")\
**Posts on this page:** 5\
**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 15, 2019, 5:18am UTC](https://travis-ci.community/t/github-pages-deployment-fails-with-missing-github-token/5955/1 "2019-11-15T05:18:25Z")

</div>

I’ve followed the directions here:

> **[Travis CI Documentation](https://docs.travis-ci.com/user/deployment/pages/)**
>
> GitHub Pages Deployment

It worked once:  
[https://travis-ci.org/acgetchell/CDT-plusplus/jobs/607700064](https://travis-ci.org/acgetchell/CDT-plusplus/jobs/607700064)

But no longer:  
[https://travis-ci.org/acgetchell/CDT-plusplus/jobs/607715139#L1016](https://travis-ci.org/acgetchell/CDT-plusplus/jobs/607715139#L1016)

Nor various attempts since then, including resetting GITHUB\_TOKEN, DOXYGEN\_TOKEN, etc.  
[https://travis-ci.org/acgetchell/CDT-plusplus/jobs/612211459#L1028](https://travis-ci.org/acgetchell/CDT-plusplus/jobs/612211459#L1028)

DOXYGEN\_TOKEN exported here:  
[https://travis-ci.org/acgetchell/CDT-plusplus/jobs/607715139#L268](https://travis-ci.org/acgetchell/CDT-plusplus/jobs/607715139#L268)

I’d also turned off Caching for that particular build:  
[https://travis-ci.org/acgetchell/CDT-plusplus/jobs/612219543](https://travis-ci.org/acgetchell/CDT-plusplus/jobs/612219543)

---

<div class="post-metadata">

**Author:** ![kKen94](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kken94/32/3149_2.png) [@kKen94](https://travis-ci.community/u/kKen94)\
**Post date:** [November 15, 2019, 7:11pm UTC](https://travis-ci.community/t/github-pages-deployment-fails-with-missing-github-token/5955/2 "2019-11-15T19:11:04Z")

</div>

Same issue

---

<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 15, 2019, 7:46pm UTC](https://travis-ci.community/t/github-pages-deployment-fails-with-missing-github-token/5955/3 "2019-11-15T19:46:49Z")

</div>

This is a bug in build config validation – it breaks configs for some v1 deployers.

Disable build config validation or [opt in for dpl v2](https://docs.travis-ci.com/user/deployment-v2) which does work with the “fixed” config.

> [@"missing api\_key" when deploying to GitHub releases](https://travis-ci.community/t/missing-api-key-when-deploying-to-github-releases/5761/7):
>
> Yes, I’m completely sure this the configuration for this build. This is what I see in “view config” tab. But I just noticed there’s also this suspicious message under “build config validation”: jobs.include.deploy: key api\_key is an alias for token, using token

---

<div class="post-metadata">

**Author:** ![kKen94](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kken94/32/3149_2.png) [@kKen94](https://travis-ci.community/u/kKen94)\
**Post date:** [November 16, 2019, 12:57am UTC](https://travis-ci.community/t/github-pages-deployment-fails-with-missing-github-token/5955/4 "2019-11-16T00:57:47Z")

</div>

Thanks, fixed with edge:true

---

<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 16, 2019, 3:01am UTC](https://travis-ci.community/t/github-pages-deployment-fails-with-missing-github-token/5955/5 "2019-11-16T03:01:38Z")

</div>

Thanks, edge:true worked for me too!

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