This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
LaPyDiary/.github/workflows/compile.yml

29 lines
870 B
YAML
Raw Normal View History

2021-10-03 20:56:28 +02:00
name: Build LaTeX document
on:
push:
paths:
- 'diarydata/*'
2021-10-03 20:57:15 +02:00
- 'model.tex'
2021-10-03 20:56:28 +02:00
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
2021-10-03 20:57:15 +02:00
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
2021-10-03 20:56:28 +02:00
- run: python gen.py
- name: Set up Git repository
uses: actions/checkout@v2
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: model.tex
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
author_name: LaTexCompiler
message: 'Compiled LaTeX into PDF'
add: '["*.pdf"]'