-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.29 KB
/
web_build.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
name: Build CV for istvnurbn.me
on:
push:
tags:
- "v*-*-*" # Should be tagged like vYYYY-MM-DD
workflow_dispatch: # Enable manual call of this action
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: ✨ Compile CV
uses: xu-cheng/latex-action@v3
with:
root_file: |
istvan_urban_cv_clean_short.tex
istvan_urban_cv_clean_tldr.tex
args: -output-directory=compiled
latexmk_use_xelatex: true
continue_on_error: true
texlive_version: 2022
pre_compile: mkdir -p compiled
post_compile: find compiled -type f ! -iname "*.pdf" -delete
- name: 🌍 Push to istvanurban.me
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: "compiled"
destination-github-username: "istvnurbn"
destination-repository-name: "istvnurbn.github.io"
target-branch: "main"
target-directory: "static/cv"