I'm struggling with deployment to gh-pages

I have a project that builds a json file from a csv. Instead of storing both files, I wanted to store only the csv, and have travis build the json file and deploy it on github pages.

Here is my .travis.yml file:

I made a token on github and added it as a secret env variable in the settings for travis, but I still get deployment failures:
https://travis-ci.com/ted-dokos/inequality-bar/jobs/288885610

How would I debug this?

Hey @ted-dokos,

Have you tried turning off branch protection? That is if you have it already enabled.

-Montana

Hi @Montana, that fixed it!

I had no branch protection rules in my repo. BUT I tried adding a rule for gh-pages with the “allow force pushes” option checked, and that allowed travis to successfully push. I didn’t realize branch protection can actually increase permissiveness :smile:. Thanks so much for your help!

1 Like

Hey @ted-dokos,

I’m so glad I was able to fix your issue. If there’s anything else I can be of assistance with please do not hesitate to reach out to me!

-Montana (Travis CI Staff)