Update .gitlab-ci.yml file
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -19,7 +19,7 @@
|
||||
# these rules might exclude image files for figures etc.
|
||||
# *.ps
|
||||
# *.eps
|
||||
# *.pdf
|
||||
*.pdf
|
||||
|
||||
## Generated if empty string is given at "Please type another file name for output:"
|
||||
.pdf
|
||||
|
42
.gitlab-ci.yml
Normal file
42
.gitlab-ci.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
|
||||
stages:
|
||||
- build
|
||||
- release
|
||||
|
||||
build:
|
||||
image: texlive/texlive
|
||||
stage: build
|
||||
script:
|
||||
- xelatex main.tex
|
||||
after_script:
|
||||
- echo "JOB_ID=$CI_JOB_ID" >> job.env
|
||||
artifacts:
|
||||
paths:
|
||||
- "*.pdf"
|
||||
expire_in: 1d
|
||||
reports:
|
||||
dotenv: job.env
|
||||
except:
|
||||
- tags
|
||||
|
||||
release:
|
||||
image: registry.gitlab.com/gitlab-org/release-cli
|
||||
stage: release
|
||||
needs:
|
||||
- job: build
|
||||
artifacts: true
|
||||
script:
|
||||
- echo "Create Release $CI_COMMIT_SHA"
|
||||
release:
|
||||
name: "Release $CI_COMMIT_SHA"
|
||||
tag_name: "$CI_COMMIT_SHA"
|
||||
ref: "$CI_COMMIT_SHA"
|
||||
description: "Release $CI_COMMIT_SHA"
|
||||
assets:
|
||||
links:
|
||||
- name: "main.pdf"
|
||||
url: "https://git.karaolidis.com/Nikas36/cv/-/jobs/$JOB_ID/artifacts/raw/main.pdf"
|
||||
except:
|
||||
- tags
|
Reference in New Issue
Block a user