diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..dc78253 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build CV + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-pdf: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install TeX Live + run: | + sudo apt-get update + sudo apt-get install -y texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-bibtex-extra biber + + - name: Build PDF + run: make pdf + + - name: Upload PDF artifact + uses: actions/upload-artifact@v4 + with: + name: curriculum-vitae + path: main.pdf + retention-days: 30 \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..be2a6a6 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +.PHONY: all clean pdf view help + +MAIN = main +TEX_FILE = $(MAIN).tex +PDF_FILE = $(MAIN).pdf +DVI_FILE = $(MAIN).dvi + +PDFLATEX = pdflatex +BIBER = biber +VIEWER = evince + +all: pdf + +pdf: $(PDF_FILE) + +$(PDF_FILE): $(TEX_FILE) papers.bib sections/*.tex simplecv.sty + $(PDFLATEX) -interaction=nonstopmode $(MAIN) + $(BIBER) $(MAIN) + $(PDFLATEX) -interaction=nonstopmode $(MAIN) + $(PDFLATEX) -interaction=nonstopmode $(MAIN) + +view: $(PDF_FILE) + $(VIEWER) $(PDF_FILE) & + +clean: + rm -f *.aux *.log *.out *.toc *.bbl *.blg *.bcf *.run.xml *.fdb_latexmk *.fls *.synctex.gz $(DVI_FILE) $(PDF_FILE) + +help: + @echo "Available targets:" + @echo " all - Build PDF (default)" + @echo " pdf - Build PDF" + @echo " view - Open PDF with viewer" + @echo " clean - Remove generated files" + @echo " help - Show this help" \ No newline at end of file diff --git a/main.pdf b/main.pdf deleted file mode 100644 index 5bb593b..0000000 Binary files a/main.pdf and /dev/null differ