Merge branch 'main' of github.com:marcbezem/CL-PC22 into main #18
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: Compile LaTeX | |
on: [push] | |
jobs: | |
upload_pdf: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up git repository | |
uses: actions/checkout@v3 | |
- name: Compile LaTeX documents (currently 2) | |
uses: xu-cheng/latex-action@v2 | |
with: | |
root_file: | | |
Intro_CL.tex | |
Site_CL.tex | |
Skolem_CL.tex | |
- run: mkdir slides && touch index.html && cp index.html Intro_CL.pdf Site_CL.pdf Skolem_CL.pdf slides | |
- name: Upload artefact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pdfs | |
path: slides | |
- name: Publish to GitHub pages | |
if: success() # && github.ref == 'refs/heads/master' | |
uses: crazy-max/ghaction-github-pages@v3 | |
with: | |
target_branch: gh-pages | |
build_dir: slides/ | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |