Verified Commit f6f8bbf7 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

if conditions for folders

parent c5bce7dc
......@@ -57,7 +57,9 @@ unzip -qq
# rename the previous public folder as archive
mv public public-archive
if [ -d "public" ]; then
mv public public-archive
# create a new public folder for the artifacts
mkdir -p public
......@@ -132,8 +134,10 @@ git reset --hard origin/$CI_COMMIT_REF_NAME
# remove the potential old build in the archive folder
rm -rf public-archive/$branch
rm public-archive/index.html
if [ -d "public-archive" ]; then
rm -rf public-archive/$branch
rm public-archive/index.html
# copy the public-archive to public
if [ "$buildArtifact" == false ] ; then
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment