mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
build all moderncv styles in github actions
This commit is contained in:
parent
172f632d5f
commit
a6f4e6deef
1 changed files with 12 additions and 3 deletions
15
.github/workflows/build-pdf.yml
vendored
15
.github/workflows/build-pdf.yml
vendored
|
|
@ -19,17 +19,26 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build pdf
|
||||
run: latexmk -pdflua ./template.tex
|
||||
run: |
|
||||
for style in casual classic banking oldstyle fancy contemporary
|
||||
do
|
||||
echo "Compiling style $style..."
|
||||
latexmk -c
|
||||
sed -i "s/moderncvstyle[]{contemporary}/\moderncvstyle[]{${style}}/g" template.tex
|
||||
latexmk -pdflua ./template.tex
|
||||
mv template.pdf template_${style}.pdf
|
||||
mv template.log template_${style}.log
|
||||
done
|
||||
|
||||
- name: Upload pdf
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: template.pdf
|
||||
path: ./template.pdf
|
||||
path: ./template_*.pdf
|
||||
|
||||
- name: Upload log
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: template.log
|
||||
path: ./template.log
|
||||
path: ./template_*.log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue