From d69357a0fb094d23a9868d2b00bdee6b0046a7ba Mon Sep 17 00:00:00 2001 From: Ethan Robert <ethan.rbrt90@gmail.com> Date: Thu, 13 Mar 2025 16:05:36 +0100 Subject: [PATCH] Added Gitlab CI --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..464f881 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,35 @@ +stages: + - build + - release + +build: + stage: build + before_script: + - apt-get update -qq && apt-get install -y pandoc texlive + script: + - make all + artifacts: + paths: + - dist/Output.pdf + - dist/Output.html + +release: + stage: release + script: + - echo "Creating release..." + only: + - tags + artifacts: + paths: + - dist/Output.pdf + - dist/Output.html + release: + name: "Release $CI_COMMIT_TAG" + description: "Release created for commit $CI_COMMIT_SHA" + tag_name: "$CI_COMMIT_TAG" + assets: + links: + - name: "Output PDF" + url: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/dist/Output.pdf" + - name: "Output HTML" + url: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/dist/Output.html" -- GitLab