diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 23674cfd..95b96e03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -280,12 +280,7 @@ pages: - cd .. - mv docs public - mv repo public || true - - mv build/web/ public/nightly - # ensure the nightly deployment knows its location - - sed -i "s/href=\"\/web\/\"/href=\"\/nightly\/\"/g" public/nightly/index.html - - rm -rf build - - ./scripts/download-web-stable.sh - - mv stable public/web + - mv build/web/ public/web artifacts: paths: - public diff --git a/scripts/download-web-stable.sh b/scripts/download-web-stable.sh deleted file mode 100755 index 8467d1bf..00000000 --- a/scripts/download-web-stable.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -GITLAB_PROJECT_ID="16112282" - -PIPELINE="$(curl https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/pipelines\?scope=tags\&status=success\&order_by=updated_at | jq '.[].id' | head -n1)" -JOB="$(curl https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/pipelines/${PIPELINE}/jobs | jq -r '.[] | select(.name == "build_web").id')" - -wget --output-document web.zip https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/jobs/${JOB}/artifacts - -unzip web.zip - -mv build/web stable