-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.12 KB
/
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
name: Publish LaTeX documents
on: [push, pull_request, workflow_dispatch]
env:
USER_DOC_ROOT: ./user_documentation
TECH_DOC_ROOT: ./tech_documentation
SRC_NAME: root.tex
USER_OUT: 2024_UD1_Chromacase.pdf
TECH_OUT: 2024_TD1_Chromacase.pdf
jobs:
build_latex:
strategy:
fail-fast: true
matrix:
include:
- source: "${{ env.USER_DOC_ROOT }}/${{ env.SRC_NAME }}"
out: "$USER_OUT"
- source: "${{ env.TECH_DOC_ROOT }}/${{ env.SRC_NAME }}"
out: "$TECH_OUT"
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: ${{ matrix.source }}
work_in_root_file_dir: true
#TODO Include Font
#TODO Check if needed
#latexmk_shell_escape: true
- name: Rename output
run: |
mv "root.pdf" ${{ matrix.out }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: 2024_DA2_Chromacase
path: ${{ matrix.out }}