diff --git a/.github/workflows/latex-compilation.yaml b/.github/workflows/latex-compilation.yaml index 5d8dfd8..e5bb16c 100644 --- a/.github/workflows/latex-compilation.yaml +++ b/.github/workflows/latex-compilation.yaml @@ -22,6 +22,47 @@ jobs: glob_root_file: true continue_on_error: true + - name: 📂 List Directory Contents + run: ls -al + + - name: 📝 Find .tex Files and create Combined.tex + run: | + echo "\\documentclass{article}" > Combined.tex + echo "\\usepackage{pdfpages}" >> Combined.tex + echo "\\usepackage{titlesec}" >> Combined.tex + echo "\\begin{document}" >> Combined.tex + + # Add the title page + echo "\\begin{titlepage}" >> Combined.tex + echo "\\centering" >> Combined.tex + echo "\\vspace*{\fill}" >> Combined.tex + echo "\\LARGE \textbf{}" >> Combined.tex + echo "\\Large " >> Combined.tex + echo "\\normalsize Author: " >> Combined.tex + echo "\\vspace*{\fill}" >> Combined.tex + echo "\\end{titlepage}" >> Combined.tex + + for file in $(ls *.tex | sort); do + # Exclude Combined.tex from the list + if [[ "$file" != "Combined.tex" ]]; then + # Replace .tex with .pdf + pdf_file="${file%.tex}.pdf" + echo "\\includepdf[pages=-]{$pdf_file}" >> Combined.tex + fi + done + echo "\\end{document}" >> Combined.tex + mv "Combined.tex" "CIT-5920-Lecture-Notes.tex" + + - name: 🔍 Look at file content + run: cat "CIT-5920-Lecture-Notes.tex" + + - name: 🛠️ Compile Combined.tex + uses: xu-cheng/latex-action@v2 + with: + root_file: "CIT-5920-Lecture-Notes.tex" + glob_root_file: true + continue_on_error: true + - name: 🏷️ Generate Release Tag id: tag run: | diff --git a/README.md b/README.md index 39f1282..e7178d8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -592Notes -======== +# UPenn — CIT 5920 — Lecture Notes -Collection of brief notes from fall 2014 592 lectures +This repository contains lecture notes originally authored by Arvind Bhusnurmath for the Fall 2014 offering of CIT 5920 at the University of Pennsylvania. + +Any change made to the LaTeX source files will automatically be recompiled and pushed as a release. \ No newline at end of file