diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-02-07 17:02:13 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-02-07 17:02:13 -0600 |
commit | ceb45aaa5d75a2e5b8f52381382b8a6f8d2c1941 (patch) | |
tree | 3b1420059779cc34a813e5f32523b76ac3a9bc56 | |
parent | 5a4705ef599cd771df38861201617c570bd86313 (diff) |
ci: fix build and add artifacts tarball
-rw-r--r-- | .build.yml | 8 | ||||
-rw-r--r-- | .latexmkrc | 11 |
2 files changed, 8 insertions, 11 deletions
@@ -5,9 +5,11 @@ packages: sources: - https://git.sr.ht/~tobyvin/resume artifacts: - - resume/out/resume.pdf - - resume/out/cover_letter.pdf + - resume/build/resume.pdf + - resume/build/artifacts.tar.gz tasks: - build: | cd resume/src - latexmk -pdf -interaction=nonstopmode -synctex=1 -auxdir=../aux -outdir=../out -emulate-aux-dir *.tex + for i in ./**/resume.tex; do latexmk "$i" -c -jobname="$(printf %s "$i" | cut -d/ -f3)"; done + cd build + tar -czvf artifacts.tar.gz *.pdf @@ -1,13 +1,8 @@ +my $cwd = cwd(); $pdf_mode = 1; $pdflatex = 'pdflatex -synctex=1 --interaction=nonstopmode'; +$aux_dir = "$cwd/build"; +$out_dir = "$cwd/build"; $do_cd = 1; -$aux_dir = "../build"; -$out_dir = "../build"; $emulate_aux = 1; $clean_ext = "%R-*.glstex %R_contourtmp*.* pdfsync synctex.gz"; - -if(defined $ENV{JOBNAME}) { - $jobname = "%A-$ENV{JOBNAME}"; -} else { - $jobname = "%A"; -} |