From 0f5aaadcb00c528868418aa5fdfa9a7a62a4d006 Mon Sep 17 00:00:00 2001 From: Alfin Johny <alfin.johny@tum.de> Date: Fri, 20 Dec 2024 16:41:15 +0100 Subject: [PATCH] Try deploying --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9a76a1..bb9310c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -103,3 +103,15 @@ pages: when: manual # Run only when triggered manually - if: '$CI_PIPELINE_SOURCE == "trigger"' # Triggered by another pipeline when: on_success # Run if the source pipeline was successful +# Deploy to GitLab Pages +deploy_gitlab_pages: + stage: .post + script: + - mv $CI_PROJECT_DIR/public $CI_PROJECT_DIR/public # Ensure the output is in the public folder + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' # Run when the commit is on the default branch + when: on_success # Only run if the previous jobs are successful + - if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH' # Allow manual triggers on non-default branches + when: manual # Run only when triggered manually + - if: '$CI_PIPELINE_SOURCE == "trigger"' # Triggered by another pipeline + when: on_success # Run if the source pipeline was successful \ No newline at end of file -- GitLab