add misc root exercises #81
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: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
with: | |
submodules: true | |
- name: Compile LaTeX sources | |
uses: xu-cheng/[email protected] | |
with: | |
pre_compile: tlmgr update --self && tlmgr update --all | |
work_in_root_file_dir: true | |
root_file: | | |
tex/analysis_2/analysis_2.tex | |
tex/bubbles/bubbles.tex | |
tex/cavendish/cavendish.tex | |
tex/fnad/fnad.tex | |
tex/maxwell/maxwell.tex | |
tex/particles/particles.tex | |
tex/thermocouple/thermocouple.tex | |
- name: Compile LuaLaTeX sources | |
uses: xu-cheng/[email protected] | |
with: | |
pre_compile: tlmgr update --self && tlmgr update --all | |
work_in_root_file_dir: true | |
latexmk_use_lualatex: true | |
root_file: | | |
tex/root/root.tex | |
- name: Move PDFs | |
run: mv ./tex/*/*.pdf dist | |
shell: bash | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_dir: dist | |
allow_empty_commit: true | |
force_orphan: true | |
enable_jekyll: true |