Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Todor Kondic
courses
Commits
a808e347
Commit
a808e347
authored
Feb 03, 2020
by
Laurent Heirendt
✈
Browse files
Merge branch 'develop' into 'master'
Regular merge of develop See merge request
R3/school/courses!62
parents
ff36fda8
37222bd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/deploy.sh
View file @
a808e347
...
...
@@ -9,6 +9,12 @@ echo $rootDir
rm
-rf
$rootDir
/public
mkdir
$rootDir
/public
# create img folders
mkdir
$rootDir
/public/img
mkdir
$rootDir
/public/img/unstable
mkdir
$rootDir
/public/img/latest
mkdir
$rootDir
/public/img/stable
# loop through all the presentations
nBlades
=
0
for
d
in
$(
find
.
-maxdepth
1
-type
d
)
...
...
@@ -51,6 +57,12 @@ do
grunt dist
mv
public/
*
$rootDir
/public/
$BLADE
/unstable/.
# link to the img directory
mv
$rootDir
/public/
$BLADE
/unstable/slides/img/
*
$rootDir
/public/img/unstable/.
rm
-rf
$rootDir
/public/
$BLADE
/unstable/slides/img
ln
-s
../../../img/unstable
$rootDir
/public/
$BLADE
/unstable/slides/img
echo
" > unstable built for file set
${
BLADE
}
"
# build the master version into stable
...
...
@@ -61,6 +73,12 @@ do
git submodule update
--init
grunt dist
mv
public/
*
$rootDir
/public/
$BLADE
/stable/.
# link to the img directory
mv
$rootDir
/public/
$BLADE
/stable/slides/img/
*
$rootDir
/public/img/stable/.
rm
-rf
$rootDir
/public/
$BLADE
/stable/slides/img
ln
-s
../../../img/stable
$rootDir
/public/
$BLADE
/stable/slides/img
echo
" > stable built for file set
${
BLADE
}
"
# build the develop version into latest
...
...
@@ -71,6 +89,12 @@ do
git submodule update
--init
grunt dist
mv
public/
*
$rootDir
/public/
$BLADE
/latest/.
# link to the img directory
mv
$rootDir
/public/
$BLADE
/latest/slides/img/
*
$rootDir
/public/img/latest/.
rm
-rf
$rootDir
/public/
$BLADE
/latest/slides/img
ln
-s
../../../img/latest
$rootDir
/public/
$BLADE
/latest/slides/img
echo
" > latest built for file set
${
BLADE
}
"
# auto redirect file to the stable version
...
...
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