-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (33 loc) · 1004 Bytes
/
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
name: Build Report
on:
push:
branches: [main, chore/setup-report-pipeline]
paths:
- "report/**"
jobs:
build_latex:
runs-on: ubuntu-latest
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
- 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