One can avoid [https://github.com/steveklabnik/automatically_update_github_pages_with_travis_example#one-drawback](https://github.com/steveklabnik/automatically_update_github_pages_with_travis_example#one-drawback) by designating a version of language/other env var to publish docs as I've done in [https://github.com/ofek/bit/blob/master/.travis/deploy_docs.sh](https://github.com/ofek/bit/blob/master/.travis/deploy_docs.sh).
One can avoid https://github.com/steveklabnik/automatically_update_github_pages_with_travis_example#one-drawback by designating a version of language/other env var to publish docs as I've done in https://github.com/ofek/bit/blob/master/.travis/deploy_docs.sh.