Refactor exercises #89
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
# __________________________________________________ | |
# | |
# Workflow to test the slide compilation | |
# __________________________________________________ | |
name: Generate courses PDF | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
beginner_changed: ${{ steps.filter.outputs.beginner }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
beginner: | |
- 'courses/01_beginners/*.tex' | |
- 'images/**' | |
build_beginner_course: | |
needs: changes | |
if: ${{ needs.changes.outputs.beginner_changed == 'true' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v4 | |
- name: Compile LaTeX document | |
uses: xu-cheng/latex-action@v3 | |
with: | |
working_directory: courses/01_beginners/ | |
pre_compile: | | |
tlmgr update --self && tlmgr update minted | |
latexminted --version | |
root_file: main.tex | |
latexmk_shell_escape: true | |
latexmk_use_xelatex: true | |
# - name: Upload PDF file | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: beginner_pdf_course | |
# path: courses/01_beginners/beginners.pdf |