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

set folder named based on branch

parent 45f4a340
No related branches found
No related tags found
1 merge request!80Regular merge of develop
Pipeline #29225 passed
...@@ -9,11 +9,14 @@ echo $rootDir ...@@ -9,11 +9,14 @@ echo $rootDir
rm -rf $rootDir/public rm -rf $rootDir/public
mkdir $rootDir/public mkdir $rootDir/public
# create img folders # define the branch
#mkdir $rootDir/public/img if [[ $CI_COMMIT_BRANCH == "develop" ]]; then
#mkdir $rootDir/public/img/unstable version="latest"
#mkdir $rootDir/public/img/latest elif [[ $CI_COMMIT_BRANCH == "master" ]]; then
#mkdir $rootDir/public/img/stable version="stable"
else
version="unstable"
fi
# loop through all the presentations # loop through all the presentations
nBlades=0 nBlades=0
...@@ -32,9 +35,7 @@ do ...@@ -32,9 +35,7 @@ do
# create the required folders in public # create the required folders in public
mkdir $rootDir/public/$BLADE mkdir $rootDir/public/$BLADE
#mkdir $rootDir/public/$BLADE/unstable mkdir $rootDir/public/$BLADE/$version
mkdir $rootDir/public/$BLADE/latest
#mkdir $rootDir/public/$BLADE/stable
# change to the blade directory to be built # change to the blade directory to be built
cd $BLADE cd $BLADE
...@@ -53,7 +54,7 @@ do ...@@ -53,7 +54,7 @@ do
yarn install yarn install
grunt dist grunt dist
mv public/* $rootDir/public/$BLADE/latest/. mv public/* $rootDir/public/$BLADE/$version/.
echo " > latest built for file set ${BLADE}" echo " > latest built for file set ${BLADE}"
......
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