ver 1.8.3 - disable cyrillic fonts by default #15
Workflow file for this run
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 LaTeX Document via GitHub Actions | |
# push to main branch or tag with 'build-*' to trigger the workflow | |
# workflow: | |
# 1. build latex document | |
# 2. release the document and source code | |
on: | |
push: | |
tags: | |
- release-** | |
pull_request: | |
branches: | |
- main | |
# workflow_dispatch: {} | |
jobs: | |
build_document: | |
name: Build & Realse LaTeX Document (Template) | |
runs-on: ubuntu-latest | |
# 1 min (Linux) = 2 min (Windows) = 10 min (MacOS) | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
- name: compile document | |
uses: xu-cheng/latex-action@v3 | |
with: | |
compiler: latexmk | |
texlive_version: 2024 | |
root_file: thesis.tex | |
extra_fonts: ./fonts/*.ttf | |
args: | | |
-norc -xelatex | |
-bibtex -bibfudge | |
-latex=xelatex -recorder- | |
-latexoption=-synctex=1 -interaction=nonstopmode -file-line-error --shell-escape | |
pre_compile: "export" | |
post_compile: "latexmk -norc -c" | |
- name: extract tag name | |
if: startsWith(github.ref, 'refs/tags/release-') | |
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/release-}" >> $GITHUB_ENV | |
- name: create new release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/release-') | |
with: | |
tag_name: ${{ env.TAG_NAME }} | |
draft: false | |
prerelease: false | |
files: | | |
thesis.pdf | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |