-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (46 loc) · 1.27 KB
/
build-cv.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: Create and publish the CV
on:
push:
# paths:
# - CV
# tags:
# - 'v*.*.*'
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/cache#creating-a-cache-key
# http://man7.org/linux/man-pages/man1/date.1.html
- name: Set up Git repository
uses: actions/checkout@v3
with:
lfs: true
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: major
- name: Compile LaTeX document for german CV
uses: xu-cheng/latex-action@v2
with:
root_file: cv_german.tex
working_directory: "CV"
env:
TEXINPUTS: ".:./CV//:"
- name: Compile LaTeX document for english CV
uses: xu-cheng/latex-action@v2
with:
root_file: cv_english.tex
working_directory: "CV"
env:
TEXINPUTS: ".:./CV//:"
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
files: |
CV/cv_german.pdf
CV/cv_english.pdf