Assuming you've got a
resume.md in a repository on GitHub that's watched by Travis CI all you need to do is add a
.travis.yml describing what to do when a new commit is pushed to the origin.
First let Travis CI know we don't need
Then let it know we need an OSX virtual machine:
basictex via homebrew:
before_install: - brew update - brew install pandoc - brew cask install basictex
texbin executable to the virtual machine
install: - export PATH="/Library/TeX/texbin:$PATH"
script: - make resume.pdf
Generate a GitHub personal access token with the
public_repo scope and add it as an environment variable named
GITHUB_TOKEN via the Travis CI interface.
Then use the
pages provider to push the PDF to the
gh-pages branch on GitHub:
deploy: provider: pages skip-cleanup: true github-token: $GITHUB_TOKEN file: "resume.pdf" on: branch: master