Skip to content

Lua logic & automation fixes #10

Lua logic & automation fixes

Lua logic & automation fixes #10

name: Compile LaTeX document
on: [push]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Extract PDF name from LaTeX title
run: |
sudo apt-get install -y lua5.3
lua logic/logic.lua main.tex > pdf_name.txt
echo "PDF_NAME=$(cat pdf_name.txt)" >> $GITHUB_ENV
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
latexmk_use_xelatex: true
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: main.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload PDF to Release
uses: actions/upload-artifact@v4
with:
name: ${{ env.PDF_NAME }}
path: main.pdf