diff --git a/.gitignore b/.gitignore index e964244..ab1b5a3 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cb2c943 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 diff --git a/main.pdf b/main.pdf deleted file mode 100644 index 2e4e049..0000000 Binary files a/main.pdf and /dev/null differ