Loading .gitlab-ci.yml +9 −8 Original line number Diff line number Diff line Loading @@ -228,21 +228,22 @@ pages: - job: build-job artifacts: true 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 # Get the previous GitLab Pages content (otherwise other beta/stable branch gets removed..) - 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 - ls -la $RELEASE_PATH # Cleanup content? # Add/update content # TODO: differentiate on branch? - echo $CI_PAGES_URL - echo $RELEASE_PATH - mkdir -p $RELEASE_PATH - cp -r -f $SITE_PATH/* $RELEASE_PATH - ls -la $RELEASE_PATH # Zip the content and publish the zip again # - zip -r "content.zip" "public" # - mv "content.zip" "public/" - zip -r "content.zip" "public" - mv "content.zip" "public/" # - mv $SITE_ARCHIVE $RELEASE_PATH/content.zip artifacts: paths: Loading Loading
.gitlab-ci.yml +9 −8 Original line number Diff line number Diff line Loading @@ -228,21 +228,22 @@ pages: - job: build-job artifacts: true 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 # Get the previous GitLab Pages content (otherwise other beta/stable branch gets removed..) - 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 - ls -la $RELEASE_PATH # Cleanup content? # Add/update content # TODO: differentiate on branch? - echo $CI_PAGES_URL - echo $RELEASE_PATH - mkdir -p $RELEASE_PATH - cp -r -f $SITE_PATH/* $RELEASE_PATH - ls -la $RELEASE_PATH # Zip the content and publish the zip again # - zip -r "content.zip" "public" # - mv "content.zip" "public/" - zip -r "content.zip" "public" - mv "content.zip" "public/" # - mv $SITE_ARCHIVE $RELEASE_PATH/content.zip artifacts: paths: Loading