5. Edit .travis.yml

after_success:
- .travis/publish-site.sh

6. Add public key to the GitHub pages repo

Go to the GitHub pages repo, Settings > Deploy keys https://github.com/foo/foo.github.com/settings/keys, and add the content of your public key deploy_website_rsa.pub. Name the entry as travis-ci-website or something along the line so you'll remember what it's for.

7. During syncLocal configure git

The following is specific to the behavior of sbt-ghpages. It might not be needed if you're doing something else.

A note about Pamflet + Pandoc

Travis CI's rencent build environments allow the use of apt-get inside the container-based images, so now we can install latex-cjk-all and pandoc in addition to sbt.

Because Pamflet can generate a single-page markdown file per localized languages, I can not only automatically deploy the static HTML website, but also build PDF document both in English and Japanese from Travis CI.