mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Merge branch 'master' into islandoftex-img-gh-actions
This commit is contained in:
commit
2315a88676
51 changed files with 135 additions and 99 deletions
19
.github/workflows/build-pdf.yml
vendored
19
.github/workflows/build-pdf.yml
vendored
|
|
@ -19,17 +19,30 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build pdf
|
||||
run: latexmk -pdflua ./template.tex
|
||||
run: |
|
||||
prev_style=contemporary
|
||||
for style in casual classic banking oldstyle fancy contemporary
|
||||
do
|
||||
echo -e "\033[1;35mCompiling style $style...\033[0m"
|
||||
# first cleanup, but keep .log files for later artifact upload
|
||||
latexmk -c -e 'sub cleanup_generated { my $ext = $_[0]; return 0 if $ext eq "log"; return 1; }'
|
||||
sed -i "s/moderncvstyle\[\]{${prev_style}}/moderncvstyle\[\]{${style}}/g" template.tex
|
||||
latexmk -pdflua ./template.tex
|
||||
mv template.pdf template_${style}.pdf
|
||||
mv template.log template_${style}.log
|
||||
# remember previous style
|
||||
prev_style=$style
|
||||
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
|
||||
|
|
|
|||
5
.github/workflows/build-userguide-pdf.yml
vendored
5
.github/workflows/build-userguide-pdf.yml
vendored
|
|
@ -33,14 +33,14 @@ jobs:
|
|||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: moderncv_userguide.pdf
|
||||
path: ./manual/moderncv_userguide/moderncv_userguide.pdf
|
||||
path: ./manual/moderncv_userguide.pdf
|
||||
|
||||
- name: Upload user guide log
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: moderncv_userguide.log
|
||||
path: ./manual/moderncv_userguide/moderncv_userguide.log
|
||||
path: ./manual/moderncv_userguide.log
|
||||
|
||||
- name: Push new user guide to master
|
||||
if: ${{ github.ref_name == 'master' }}
|
||||
|
|
@ -49,6 +49,7 @@ jobs:
|
|||
apt update && apt install git -y
|
||||
git config --global user.name '${{ env.UG_AUTHOR }}'
|
||||
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
|
||||
ls -l
|
||||
git add manual/moderncv_userguide.pdf
|
||||
git commit -m "${{ env.UG_COMMIT_MESSAGE }}"
|
||||
git push
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue