diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f446026905692863d81c6bbdfc4cde85ddbc4443..f9978d0d8786560025faa7650d3f27067d904762 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,7 +76,7 @@ pages: # Repeat for other titles (structure, propulsion, etc.) - python $CI_PROJECT_DIR/scripts/document_aircraft_xml.py --title Geometry --level 6 $CI_PROJECT_DIR/scripts/CSR-02.xml > $CI_PROJECT_DIR/docs/aircraft-xml/geometry.md # Use the persisted content from the previous stage (aircraft-design) - - cp -r $CI_PROJECT_DIR/aircraft-design $CI_PROJECT_DIR/docs/ # Copy content to the docs folder + - cp -r $CI_PROJECT_DIR/aircraft-design $CI_PROJECT_DIR/docs/documentation # Copy content to the docs/documentation folder # Build the MkDocs documentation site - pipenv run mkdocs build --verbose --site-dir $CI_PROJECT_DIR/public @@ -86,18 +86,6 @@ pages: # Save the generated static website files as artifacts paths: - $CI_PROJECT_DIR/public - 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 -# Deploy to GitLab Pages -deploy_gitlab_pages: - stage: deploy to gitlab - 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