From 99939ed591e45d67b12efb3fbf3242ec20b2d60f Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Sun, 13 Apr 2025 09:42:28 +0200 Subject: [PATCH] Add GitLab Pages deployment to CI configuration This update introduces a new job to deploy GitLab Pages. The job copies content from the `docs/` directory to the `public/` directory and is triggered only on the `develop` branch. --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 659dcf2..2c0e2d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,3 +60,15 @@ sonarcloud_scan: only: - merge_requests - develop + +pages: + stage: on_commit + script: + - echo "Deploying GitLab Pages from docs/" + - mkdir public + - cp -r docs/* public/ + artifacts: + paths: + - public + only: + - develop