-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (40 loc) · 1.13 KB
/
build-report.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
name: Build Report
on:
push:
branches: [main]
paths:
- "report/**"
- ".github/workflows/build-report.yml"
concurrency:
group: build-report
cancel-in-progress: true
jobs:
build_latex:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Compile LaTeX document 🐦⬛
uses: xu-cheng/latex-action@v3
with:
working_directory: report/
root_file: main.tex
latexmk_shell_escape: true
- name: Upload artifact 📦
uses: actions/upload-artifact@v4
with:
name: report
path: report/main.pdf
overwrite: true
- name: Rename file to prevent it from being ignored ⚙️
run: |
mkdir report/pdf-output
mv report/main.pdf report/pdf-output/report.pdf
- name: Deploy to separate branch 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
BRANCH: report
FOLDER: report/pdf-output
CLEAN: true # Automatically remove deleted files from the deploy branch