Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build LaTeX exercises, exams, and slides as PDF | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*.*' | |
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 }} |