Skip to content

Lecture about jwt (spring) #12

Lecture about jwt (spring)

Lecture about jwt (spring) #12

Workflow file for this run

# .github/workflows/lectures.yml
name: Build and Deploy Lectures
on:
push:
branches: [ main ] # или ваша основная ветка
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install full TeX Live (with XeLaTeX and Cyrillic support)
run: |
sudo apt-get update
sudo apt-get install -y \
texlive-xetex \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-lang-cyrillic \
fonts-dejavu fonts-freefont-otf fonts-freefont-ttf
- name: Create output directory
run: mkdir -p dist/lectures
- name: Compile .tex files with XeLaTeX
run: |
cd lections
for texfile in lecture*.tex; do
if [ -f "$texfile" ]; then
filename="${texfile%.tex}"
echo "Compiling $texfile → $filename.pdf"
# Первый проход
xelatex -interaction=nonstopmode "$texfile"
# Второй проход (для ссылок, TOC и т.д.)
xelatex -interaction=nonstopmode "$texfile"
# Копируем PDF в целевую папку
mv "${filename}.pdf" ../dist/lectures/
# Опционально: удаляем временные файлы
rm -f "${filename}.aux" "${filename}.log" "${filename}.out" "${filename}.toc"
fi
done
- name: Copy .txt files
run: |
cp lections/*.txt dist/lectures/
- name: Publish generated content to GitHub Pages
uses: tsunematsu21/actions-publish-gh-pages@v1.0.2
with:
dir: dist
branch: pages
token: ${{ secrets.ACCESS_TOKEN }}