-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 879 Bytes
/
paper.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
35
36
name: Build Paper
on:
push:
paths:
- docs/paper/**
- .github/workflows/paper.yml
workflow_dispatch:
jobs:
latex:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: mkdir -p build
working-directory: docs/paper
- uses: xu-cheng/latex-action@v2-texlive2022
with:
root_file: paper.tex
working_directory: docs/paper
post_compile: "mv paper.pdf build/ && latexmk -c"
- uses: actions/upload-artifact@master
with:
name: paper.pdf
path: docs/paper/build/paper.pdf
- run: mkdir -p build && mv docs/paper/build/paper.pdf build/
- uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
keep_files: true