remove hash from toc #54
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 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 | |
latexmk_shell_escape: true | |
work_in_root_file_dir: true | |
extra_system_packages: "gcc g++" | |
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 |