Skip to content

Circuit breaker update #312

Circuit breaker update

Circuit breaker update #312

Workflow file for this run

name: Build LaTeX Document
on: [push, pull_request]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history to detect changes
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Compile and Move LaTeX Documents Inside Docker
run: |
docker run --rm \
-v "${{ github.workspace }}:/workspace" \
-w /workspace \
texlive/texlive:latest \
bash -c "apt-get update && \
apt-get install -y git python3-pip python3-venv && \
python3 -m venv /workspace/venv && \
/workspace/venv/bin/pip install gitpython && \
/workspace/venv/bin/python scripts/compile-all-latex.py && \
/workspace/venv/bin/python scripts/move-files.py"
- name: Commit `versions.json` file
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git add versions.json
git diff --cached --quiet || git commit -m "Update versions.json" # Commit only if there are changes
git push
- name: Upload PDF Artifacts
uses: actions/upload-artifact@v4
with:
name: compiled-pdfs
path: release/*