fix: attempt 3 to get workflows to work #70
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build LaTeX document | |
on: [push, pull_request] | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Fetch full history to detect changes | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v2 | |
- name: Compile all LaTeX documents with version tracking inside Docker | |
run: | | |
docker run --rm \ | |
-v "${{ github.workspace }}:/workspace" \ | |
-e GITHUB_WORKSPACE="${{ github.workspace }}" \ # Pass GITHUB_WORKSPACE into Docker | |
-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" | |
- name: Rename files and move to single release folder with versioning inside Docker | |
run: | | |
docker run --rm \ | |
-v "${{ github.workspace }}:/workspace" \ | |
-e GITHUB_WORKSPACE="${{ github.workspace }}" \ # Pass GITHUB_WORKSPACE into Docker | |
-w /workspace \ | |
texlive/texlive:latest \ | |
bash -c "/workspace/venv/bin/python scripts/move-files.py" | |
- name: Upload PDF files | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts | |
path: release/* |