Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Nene Barry
markdown
Commits
f6f8bbf7
Verified
Commit
f6f8bbf7
authored
Nov 05, 2019
by
Laurent Heirendt
✈
Browse files
if conditions for folders
parent
c5bce7dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/deploy.sh
View file @
f6f8bbf7
...
...
@@ -57,7 +57,9 @@ unzip -qq artifacts.zip
rm
artifacts.zip
# rename the previous public folder as archive
mv
public public-archive
if
[
-d
"public"
]
;
then
mv
public public-archive
fi
# create a new public folder for the artifacts
mkdir
-p
public
...
...
@@ -132,8 +134,10 @@ git reset --hard origin/$CI_COMMIT_REF_NAME
artifact
=
"
$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
fi
# copy the public-archive to public
if
[
"
$buildArtifact
"
==
false
]
;
then
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment