-
Notifications
You must be signed in to change notification settings - Fork 4
79 lines (71 loc) · 2.69 KB
/
ci.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# https://github.com/actions/cache#creating-a-cache-key
# http://man7.org/linux/man-pages/man1/date.1.html
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
shell: bash
- name: Cache
uses: actions/[email protected]
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: |
*.aux
*.lof
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}
- name: Use example sender file
run: mv "sender/me-agency.lco.example" "sender/me-agency.lco"
- name: LaTeX compilation
uses: dante-ev/latex-action@latest
with:
# The root LaTeX file to be compiled
root_file: ifg-letter-appeal.tex
# The working directory for the latex compiler to be invoked
working_directory: . # optional
# LaTeX engine to be used
#compiler: lualatex # optional, default is latexmk
# Extra arguments to be passed to the latex compiler
args: -lualatex -latexoption=-file-line-error -latexoption=-interaction=nonstopmode # optional, default is -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode
# Install extra packages by apt-get
#extra_system_packages: # optional
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: PDF # optional, default is artifact
# A file, directory or wildcard pattern that describes what to upload
path: "*.pdf"
# The desired behavior if no files are found using the provided path.
if-no-files-found: error # optional, default is warn