Refactor GitLab CI to consolidate Pages deployment into existing stages

This commit is contained in:
2025-06-09 17:30:54 +02:00
parent e48315ac7c
commit 0864d36995
+4 -13
View File
@@ -27,6 +27,10 @@ build:
- echo "Running package..."
- cd ${GITLAB_CLONE_DIR}
- mvn clean package
- echo "Deploying GitLab Pages from docs/"
- mkdir public
- cp -r target/apidocs/* docs/
- cp -r docs/* public/
artifacts:
paths:
- target/
@@ -53,16 +57,3 @@ sonarcloud_scan:
only:
- merge_requests
- develop
pages:
stage: on_commit
script:
- echo "Deploying GitLab Pages from docs/"
- mkdir public
- cp -r target/apidocs/* docs/
- cp -r docs/* public/
artifacts:
paths:
- public
only:
- develop