mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
automated action for user guide creation
This commit is contained in:
parent
b1292ae494
commit
4ce3e561fd
1 changed files with 52 additions and 0 deletions
52
.github/workflows/build-userguide-pdf.yml
vendored
Normal file
52
.github/workflows/build-userguide-pdf.yml
vendored
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
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/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
|
||||||
|
|
||||||
|
- name: Push new user guide to master
|
||||||
|
if: ${{ github.ref_name == 'master' }}
|
||||||
|
run: |
|
||||||
|
git config --global user.name '${{ env.UG_AUTHOR }}'
|
||||||
|
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
|
||||||
|
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