-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (34 loc) · 914 Bytes
/
doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build LaTeX documentation
on:
push:
branches:
- main
pull_request:
paths:
- 'doc/latex/**'
workflow_dispatch:
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
root_file: masterdoc.tex
working_directory: doc/latex
- name: Move pdf and remove other files
run: |
mv doc/latex/masterdoc.pdf .
ls | grep -xv "masterdoc.pdf" | xargs rm -rf
- name: Commit documentation
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Build documentation
branch: gh-doc
file_pattern: masterdoc.pdf
create_branch: true
push_options: '--force'