Skip to content
Snippets Groups Projects
Commit e6ae3354 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

change of folder structure

parent 99ce4269
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,17 @@
rootDir=$(pwd)
echo $rootDir
# change to the blade to be built
# define the directory to the blade
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment