Skip to content

Workflow file for this run

name: Build
on:
push:
branches:
- 'main'
pull_request:
jobs:
# Build the example PDF
build-pdf:
runs-on: [ubuntu-22.04]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pygmentize
run: python3 -m pip install pygments
- name: Build PDF
uses: xu-cheng/latex-action@v3
with:
working_directory: thesis
root_file: main.tex
latexmk_shell_escape: true
texlive_version: 2022
- name: Upload PDF file
uses: actions/upload-artifact@v4
with:
name: thesis
path: thesis/main.pdf
- name: Convert to HTML
run:
wget https://github.com/pdf2htmlEX/pdf2htmlEX/releases/download/continuous/pdf2htmlEX-0.18.8.rc2-master-20200820-ubuntu-20.04-x86_64.deb
apt install -y ./pdf2htmlEX-0.18.8.rc2-master-20200820-ubuntu-20.04-x86_64.deb
cd thesis
pdf2htmlEX main.pdf
# - name: Deploy to GitHub Pages
# uses: actions/deploy-pages@v4
# with:
# artifact_name: thesis