Skip to content

Export generated documentation #9

Export generated documentation

Export generated documentation #9

Workflow file for this run

name: Build Documentation
on:
push:
branches: main
paths:
- 'doc/**'
- '.github/workflows/latex.yml'
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
latexmk_use_lualatex: true
work_in_root_file_dir: true
root_file: doc/poset.tex
- name: Copy PDFs
run: |
mkdir public
cp ./doc/*.pdf ./public
- name: Upload PDF files
uses: actions/upload-artifact@v3
with:
name: documentation
path: public/*.pdf
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public