Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
R3
school
courses
Commits
e6ae3354
Commit
e6ae3354
authored
Apr 25, 2019
by
Laurent Heirendt
✈
Browse files
change of folder structure
parent
99ce4269
Changes
1
Hide whitespace changes
Inline
Side-by-side
.ci/deploy.sh
View file @
e6ae3354
...
...
@@ -3,9 +3,17 @@
rootDir
=
$(
pwd
)
echo
$rootDir
#
change to the blade
to
b
e b
uilt
#
define the directory
to
th
e b
lade
cd
2019
BLADE
=
"template"
# create the required folders in public
mkdir
$rootDir
/public
mkdir
$rootDir
/public/
$BLADE
mkdir
$rootDir
/public/
$BLADE
/stable
mkdir
$rootDir
/public/
$BLADE
/latest
# change to the blade directory to be built
cd
$BLADE
# install npm
...
...
@@ -13,29 +21,21 @@ npm install -g npm@latest yo grunt-cli generator-reveal
npm
install
# build the master version into stable
#git fetch --tags
#latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
#git checkout $latestTag
#grunt dist
#mkdir stable
#mv public/* stable/.
git fetch
--tags
latestTag
=
$(
git describe
--tags
`
git rev-list
--tags
--max-count
=
1
`
)
git checkout
$latestTag
grunt dist
mv
public/
*
$rootDir
/public/
$BLADE
/stable/.
# build the develop version into latest
git checkout
-f
develop
git fetch origin develop
git reset
--hard
origin/develop
grunt dist
mkdir
$BLADE
-latest
mv
public/
*
$BLADE
-latest
/.
# deploy the stable and latest directories
mkdir
$rootDir
/public
#mv stable public/.
mv
$BLADE
-latest
$rootDir
/public/.
mv
public/
*
$rootDir
/public/
$BLADE
/latest/.
# auto redirect file
#cp .ci/.autoRedirect public/index.html
mkdir
$rootDir
/public/
$BLADE
echo
'<html>\n
<head>\n
<meta http-equiv="refresh" content="0; url=https://r3.pages.uni.lu/school/'
$BLADE
'/stable"/>\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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