-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (39 loc) · 1.19 KB
/
pr-artefact.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
37
38
39
name: Create artefact for PR
on:
pull_request:
types: [opened, edited, reopened, synchronize, ready_for_review]
jobs:
build_and_upload_pr:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
with:
ref: ''
- name: Prepare environment
run: |
mkdir -p ./out
- name: Run pdflatex prebiber on main
uses: dante-ev/latex-action@latest
with:
root_file: main.tex
compiler: pdflatex
args: -interaction=nonstopmode -output-directory=./out -shell-escape
- name: Run biber
uses: dante-ev/latex-action@latest
with:
root_file: main.bcf
compiler: biber
args: --input-directory=./out --output-directory=./out
- name: Run pdflatex on main
uses: dante-ev/latex-action@latest
with:
root_file: main.tex
compiler: pdflatex
args: -interaction=nonstopmode -output-directory=./out main.tex -shell-escape
- name: Upload pdf to workflow final
if: ${{ always() }}
uses: actions/[email protected]
with:
name: Final_built
path: out