Following the advice given on the bookdown site, I use Travis-CI to automatically build my bookdown book and push it to gh-pages. I always forget how to do this, so I’m writing these notes to supplement what is already written there.

Note 2: that the PAT must be within double quotes. the --add flag will automatically add the encrypted token to the .travis.yml file.