-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
93 lines (85 loc) · 1.9 KB
/
.gitlab-ci.yml
File metadata and controls
93 lines (85 loc) · 1.9 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
stages:
- compilation
- deploy
# - archive
# - backup
variables:
LATEX_FILENAME: "manuscript" # filename without file-extension
# Compile latex
compilation:
image: texlive/texlive:latest
stage: compilation
variables:
GIT_SUBMODULE_STRATEGY: normal
script:
- latexmk -pdf $LATEX_FILENAME.tex
artifacts:
paths:
- ./$LATEX_FILENAME.pdf
# deploy pdf to gitlab pages
pages:
image: alpine:latest
stage: deploy
only:
refs:
- main
script:
- mv ./$LATEX_FILENAME.pdf ./public/$LATEX_FILENAME.pdf
artifacts:
paths:
- public
# deploy html to gitlab pages with sphinx
# pages:
# stage: deploy
# image: python:3.6
# script:
# - pip install -U sphinx
# - sphinx-build -b html docs/source/ public
# artifacts:
# paths:
# - public
# only:
# - master
# pages:
# image: python:3.6
# stage: deploy
# script:
# - pip install -U sphinx
# - sphinx-build -b html docs/source/ public
# # pages: true # specifies that this is a Pages job
# artifacts:
# paths:
# - public
# rules:
# - if: '$CI_COMMIT_REF_NAME == "pages"'
# # Save all when tagged and manual triggered
# save_archive:
# image: texlive/texlive:latest
# stage: archive
# variables:
# GIT_SUBMODULE_STRATEGY: normal
# rules:
# - if: $CI_COMMIT_TAG
# when: manual
# script:
# - latexmk -pdf $LATEX_FILENAME.tex
# artifacts:
# untracked: true
# paths:
# - ./
# exclude:
# - .git/**/*
# - .git
# expire_in: 1000 day
# backup_archive_to_NAS:
# stage: backup
# tags:
# - windows
# rules:
# - if: $CI_COMMIT_TAG
# dependencies:
# - save_archive
# script:
# - Remove-Item .git -recurse -force
# - mkdir \\LMRES-NAS\backupGitArchives\$CI_PROJECT_NAME -force
# - Compress-Archive -Path '.\*' -DestinationPath \\LMRES-NAS\backupGitArchives\$CI_PROJECT_NAME\$CI_COMMIT_REF_NAME.zip