-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.3 KB
/
latex.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
name: LaTeX to PDF
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Inter font
run: |
sudo apt-get update
sudo apt-get install -y unzip fontconfig wget
mkdir -p ~/.local/share/fonts
wget -qO Inter.zip https://github.com/rsms/inter/releases/download/v3.19/Inter-3.19.zip
unzip -o Inter.zip -d ~/.local/share/fonts
fc-cache -f -v
- name: Compile LaTeX documents
uses: xu-cheng/latex-action@v2
with:
root_file: |
agb_app_zum_doc_patient.tex
agb_mediquu_connect.tex
agb_app_zum_doc.tex
agb_mediquu_netzmanager.tex
agb_mediquu_chat.tex
extra_system_packages: "inkscape"
latexmk_shell_escape: true
- name: Upload PDFs
uses: actions/upload-artifact@v3
with:
name: pdfs
path: ./*.pdf
- name: Upload to cdn
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: ./
destination-dir: /main