2021-07-14 12:28:06 +02:00
|
|
|
name: Build LaTeX document
|
2021-07-14 13:10:28 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'Alembic.tex'
|
2021-07-14 12:28:06 +02:00
|
|
|
jobs:
|
|
|
|
build_latex:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Git repository
|
|
|
|
uses: actions/checkout@v2
|
2021-07-14 15:15:04 +02:00
|
|
|
- name: Compile LaTeX document
|
|
|
|
uses: xu-cheng/latex-action@v2
|
|
|
|
with:
|
|
|
|
root_file: Alembic.tex
|
2022-08-24 01:01:53 +02:00
|
|
|
- name: Build Paged PDF
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.9'
|
|
|
|
cache: 'pip' # caching pip dependencies
|
2022-08-24 01:05:54 +02:00
|
|
|
- run: pip install -r requirements.txt
|
2022-08-24 01:01:53 +02:00
|
|
|
- run: python build_paged.py
|
2022-08-24 01:25:08 +02:00
|
|
|
- name: Generate markdown
|
2022-08-24 01:27:42 +02:00
|
|
|
run: sudo apt install pandoc -y && pandoc -s Alembic.tex -o Alembic.md
|
2021-07-14 15:12:03 +02:00
|
|
|
- name: Update README
|
|
|
|
uses: nanasess/setup-php@master
|
|
|
|
with:
|
|
|
|
php-version: '7.4'
|
|
|
|
- run: php buildtools/buildreadme.php
|
2021-07-14 12:38:38 +02:00
|
|
|
- name: Commit changes
|
|
|
|
uses: EndBug/add-and-commit@v7
|
|
|
|
with:
|
|
|
|
author_name: LaTexCompiler
|
2021-07-14 14:48:47 +02:00
|
|
|
message: 'Compiled LaTeX into PDF, updated README'
|
2021-07-14 15:23:39 +02:00
|
|
|
add: '["*.pdf","*md"]'
|