Skip to content

Lecture about jwt (spring) #26

Lecture about jwt (spring)

Lecture about jwt (spring) #26

Workflow file for this run

name: Build and Publish LaTeX Document
on:
push:
branches:
- main
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install -y texlive-latex-base texlive-lang-cyrillic texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
# Если есть зависимости для generate_latex.py, раскомментируйте следующую строку
# pip install -r cw/requirements.txt
- name: Generate LaTeX
working-directory: cw
run: python generate_latex.py
- name: Compile LaTeX
working-directory: cw
run: |
if [ ! -f output.tex ]; then
echo "Error: output.tex not found"
exit 1
fi
for i in 1 2 3; do
pdflatex -interaction=nonstopmode output.tex
done
if [ ! -f output.pdf ]; then
echo "Error: output.pdf not found"
exit 1
fi
- name: Debug file presence
run: |
ls -la cw
if [ -f cw/output.pdf ]; then
echo "output.pdf exists"
else
echo "output.pdf does not exist"
fi
- name: Prepare distribution folder
run: |
mkdir -p dist
cp cw/output.pdf dist/control.pdf
- name: Publish to GitHub Pages
uses: tsunematsu21/actions-publish-gh-pages@v1.0.2
with:
dir: dist
branch: pages
token: ${{ secrets.ACCESS_TOKEN }}