mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
* preparations for v2.5.1: set correct copyright date, fix missing comments on userguide.tex * sets the version for CHANGELOG * comment in order to check the comments/headers beforehand * omits .codespellrc in final release tarball * fixes wrong paths for upload, investigation of failed push
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
name: Build user guide
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'manual/moderncv_userguide.tex'
|
|
pull_request:
|
|
paths:
|
|
- 'manual/moderncv_userguide.tex'
|
|
|
|
jobs:
|
|
build-userguide:
|
|
name: Build user guide
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
UG_AUTHOR: Auto Userguide Creator
|
|
UG_COMMIT_MESSAGE: <automated> build of user guide
|
|
container:
|
|
image: thomasweise/docker-texlive-full:latest
|
|
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Build user guide pdf
|
|
run: latexmk -pdflua -cd ./manual/moderncv_userguide.tex
|
|
|
|
- name: Upload user guide pdf
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: 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.log
|
|
|
|
- name: Push new user guide to master
|
|
if: ${{ github.ref_name == 'master' }}
|
|
run: |
|
|
# maybe switch to an image with git already included, for now install it here
|
|
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
|