Skip to content

Update Maximum_Weight_Matching.cpp #15

Update Maximum_Weight_Matching.cpp

Update Maximum_Weight_Matching.cpp #15

name: Build Codebook
on:
push:
branches:
- master
jobs:
build-codebook:
runs-on: ubuntu-latest
steps:
- name: Get codebook source
uses: actions/checkout@v4
with:
path: source
- name: Get codebook pdf branch
uses: actions/checkout@v4
with:
ref: codebook
path: pdf
- name: Get Ubuntu fonts
run: |
wget https://assets.ubuntu.com/v1/0cef8205-ubuntu-font-family-0.83.zip -O ubuntu-font.zip
unzip ubuntu-font.zip
- name: Build
uses: xu-cheng/latex-action@v3
with:
root_file: source/codebook/codebook.tex
latexmk_use_xelatex: true
work_in_root_file_dir: true
extra_fonts: |
./ubuntu-font-family-0.83/*.ttf
- name: Push codebook.pdf
run: |
cp source/codebook/codebook.pdf pdf/codebook.pdf
cd pdf
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Auto build, $(date +'%Y-%m-%d_%H:%M:%S')"
git push