Skip to content

Render PDFs

Render PDFs #54

Workflow file for this run

name: Build
run-name: Render PDFs
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build LaTeX project and generate PDFs
uses: xu-cheng/latex-action@v3
with:
root_file: "*.tex"
- name: Upload PDFs as artifact
uses: actions/upload-artifact@v4
with:
name: PDF
path: "*.pdf"
- name: Upload PDFs as release
uses: softprops/action-gh-release@v1
with:
body: Current state of PDFs
name: Latest PDFs
tag_name: current
files: "*.pdf"
- name: Prepare files for gh-pages
run: |
mkdir -p public
mv *.pdf public/
- name: Publish PDFs to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public