-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (36 loc) · 1.07 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
name: Build LaTeX exercises, exams, and slides as PDF
on:
push:
branches:
- main
tags:
- 'v*.*'
workflow_dispatch:
jobs:
build_documents:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Compile LaTeX exercises
uses: xu-cheng/latex-action@v3
with:
root_file: "week*.tex"
work_in_root_file_dir: true
- name: Compile LaTeX exams
uses: xu-cheng/latex-action@v3
with:
root_file: "exam/*_exam_*.tex"
work_in_root_file_dir: true
- name: Compile LaTeX slides
uses: xu-cheng/latex-action@v3
with:
root_file: "slides/*.tex"
work_in_root_file_dir: true
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: "week*.pdf, exam/*_exam_*.pdf, slides/slides_*.pdf"
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}