Skip to content

Compile codebook

Compile codebook #158

Workflow file for this run

name: Compile Codebook
run-name: Compile codebook
on:
push:
paths-ignore:
- 'README.md'
jobs:
compile:
runs-on: ubuntu-latest
container: ghcr.io/yuankai619/codebook:latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compile
run: |
xelatex codebook.tex
xelatex codebook.tex
ls -l ./
cp codebook.pdf /root/codebook.pdf
- name: Check PDF Page
run: |
chmod +x script/check_pdf_page.sh
./script/check_pdf_page.sh
# - name: Checkout build branch
# uses: actions/checkout@v4
# with:
# ref: build
# - name: Copy PDF
# run: |
# cp /codebook/Mashu-Codebook/codebook.pdf codebook.pdf
- name: Set safe directory
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: build from ${{ github.ref_name }} - ${{ github.sha }}
file_pattern: codebook.pdf