Loading SOL005/.gitlab-ci.yml +22 −1 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ variables: stages: - validation - publish Validate OpenAPIs: stage: validation Loading @@ -25,3 +26,23 @@ Validate OpenAPIs: paths: - build/* pages: stage: publish dependencies: - Validate OpenAPIs script: # Get the previous GitLab Pages content - set +e - curl --fail "$CI_PAGES_URL/content.zip" -o "content.zip" - if [ -e "content.zip" ]; then unzip "content.zip"; rm "content.zip"; fi - set -e # Add/update content - mkdir -p "public/$CI_COMMIT_REF_NAME" - cp -r -f build/* public/$CI_COMMIT_REF_NAME # Zip the content and publish the zip again - zip -r "content.zip" "public" - mv "content.zip" "public/" artifacts: paths: - public No newline at end of file Loading
SOL005/.gitlab-ci.yml +22 −1 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ variables: stages: - validation - publish Validate OpenAPIs: stage: validation Loading @@ -25,3 +26,23 @@ Validate OpenAPIs: paths: - build/* pages: stage: publish dependencies: - Validate OpenAPIs script: # Get the previous GitLab Pages content - set +e - curl --fail "$CI_PAGES_URL/content.zip" -o "content.zip" - if [ -e "content.zip" ]; then unzip "content.zip"; rm "content.zip"; fi - set -e # Add/update content - mkdir -p "public/$CI_COMMIT_REF_NAME" - cp -r -f build/* public/$CI_COMMIT_REF_NAME # Zip the content and publish the zip again - zip -r "content.zip" "public" - mv "content.zip" "public/" artifacts: paths: - public No newline at end of file