Update .gitlab-ci.yml file

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-04-10 22:49:54 +03:00
parent 2e11587526
commit d6dbfd2b51
3 changed files with 43 additions and 1 deletions

2
.gitignore vendored
View File

@@ -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
View 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

BIN
main.pdf

Binary file not shown.