CI/CD to build Latex pdf and create a release in with GitHub Actions. The workflow triggers on push to the repository. Integrates with Overleaf.
The CI/CD pipeline integrates with Overleaf's GitHub commit. The automatic building and hosting of the file under static URL help sharing the latest version with peers or academic advisors. This automation cuts the cycle of manual download from Overleaf and uploading to the hosting service.
- Edit root LaTeX file and working directory in
compile.yml(currentlymain.texandLaTeX). - Edit correspond file and folder names in the
Rename pdfstep (currentlyrun: mv LaTeX/main.pdf LaTeX/Thesis.pdf). - Move
compile.ymlto the.github/workflows/folder in your repository. - Push LaTeX files to the repository.
- Upon a successful build, the compiled pdf is released under the
latesttag.
Appending graphics need to be referred to concerning the root folder. For example, including file VirtualizationTypes.pdf in path LateX/images/VirtualizationTypes.pdf should be referred as follows:
\begin{figure}[ht]
\begin{center}
\includegraphics[width=13.5cm]{images/VirtualizationTypes.pdf}
\caption{Physical server and two types of virtualization}
\label{fig:VirtualizationTypes}
\end{center}
\end{figure}
For more resources about the usage, check my Thesis repository.