gitlab-ci: take into account preview location

This commit is contained in:
Antoine Martin 2024-06-30 22:39:00 -04:00
parent 778cffaa61
commit e7ba2d7fd8
Signed by: ayakael
GPG key ID: D62A472A4AA7D541

View file

@ -26,7 +26,7 @@ pages:
fi fi
- rm -rf public/$CURRENT_CONTENT_PATH || true # remove last version of current branch - rm -rf public/$CURRENT_CONTENT_PATH || true # remove last version of current branch
script: script:
- cp -R src/* public/. - cp -R src/* ./public/$CURRENT_CONTENT_PATH/.
- cd public/$EPHEMERAL_BRANCHES_PATH - cd public/$EPHEMERAL_BRANCHES_PATH
- tree -d -H '.' -L 1 --noreport --charset utf-8 -T "Versions" -o index.html # generate a root HTML listing all previews for easier access - tree -d -H '.' -L 1 --noreport --charset utf-8 -T "Versions" -o index.html # generate a root HTML listing all previews for easier access
environment: environment: