Cheng XU developed a nice github action to build tex files called latex-action. So the idea of build your TeX files in Github was crazy for me that motivate me to create this repository with the purpose of documenting the necessary, and perhaps the non obvious, dependencies to build LaTeX examples in section of tutorials, xu's cv and a thesis template.
-
Add
shh-rsa
key in https://github.com/settings/keys following the documentation in github. -
Create a
DEPLOY_KEY
variable in https://github.com/mxochicale/using-latex-action/settings/secrets. See~/.ssh/id_rsa
for the key which looks like:
-----BEGIN RSA PRIVATE KEY-----
~
-----END RSA PRIVATE KEY-----
- Create a gh-pages branch for the pdf files (see more).
git checkout -b gh-pages
git push -u origin gh-pages
-
๐ 2020-04-20T1847: Creates a PR to commit changes to example.tex and then to build example.pdf
-
๐ 2020-04-10T13-57: The commit d073f64 passed ci creating thesis.pdf and available in the gh-pages as https://mxochicale.github.io/using-latex-action/thesis.pdf
-
๐ 2020-03-19T23-15: The commit ccd018 passed ci creating cv.pdf and available in the gh-pages as https://mxochicale.github.io/using-latex-action/cv.pdf
-
๐ 2020-03-18T22-13: The commit 13b9cb passed ci creating slides.pdf and available in the gh-pages as https://mxochicale.github.io/using-latex-action/slides.pdf
-
๐ 2020-03-15T23-10: The commit 518fff passed the ci creating example.pdf and available in the gh-pages as https://mxochicale.github.io/using-latex-action/example.pdf
-
๐ 2020-03-15T17-08: The commit 9c788fc passed the test using '@actions/upload-release-asset' which upload a main.zip to the Github Release. master.zip contains the PDF file.