From 2bbf51b951b14a0c9a6aa698f91f40b974dc85ac Mon Sep 17 00:00:00 2001 From: Philip Makedonski Date: Thu, 2 Nov 2023 11:56:02 +0100 Subject: [PATCH] + re-enable multi-channel releases --- .gitlab-ci.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 52dc3ec..ac8f6d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -236,27 +236,27 @@ pages: artifacts: true script: # Get the previous GitLab Pages content (otherwise other beta/stable branch gets removed..) - # - rm -rf /var/lib/apt/lists/* - # - apt update - # - apt-cache gencaches - # - apt install -y zip unzip - # - zip --help - # - 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 + - rm -rf /var/lib/apt/lists/* + - apt update + - apt-cache gencaches + - apt install -y zip unzip + - zip --help + - 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? -> remove content in release path? # Add/update content - echo $CI_PAGES_URL - echo $RELEASE_PATH - mkdir -p $RELEASE_PATH - # - rm -rf $RELEASE_PATH/* + - rm -rf $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: -- GitLab