-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
45 lines (42 loc) · 992 Bytes
/
.gitlab-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
stages:
# Compile LaTeX file to pdf
- build
# Deploy pdf to Ugla and/or GitLab Pages
- deploy
# Create solution manual report02.pdf
compile:
# Docker-image with LaTeX-compiler installed
image: timnn/texlive
stage: build
script:
- cd report
- latexmk -pdf report02.tex
# Keep all pdf files
artifacts:
paths:
- "report/*.pdf"
# Only runs job when updating any MR or merging with staging / master branch
only:
- pushes
- web
- merge-requests
- staging
- master
# Make a draft of report02.pdf on GitLab pages
pages:
stage: deploy
environment:
name: Staging
url: elisno.gitlab.io/REI502Project2/report02.pdf
# Copy artifact from compile-job
script:
- echo "Deploy to pages"
- mkdir public
- cp report/report02.pdf public
# pages-job requires to keep public-dir as an artifact
artifacts:
paths:
- public
# Only runs job when merging with staging / master branch
only:
- pushes