File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ branch="release-$version$qualifier"
4545echo -e "${BOLD}Creating $which $branch to $action ${NORMAL}"
4646
4747git checkout develop
48- git branch -d $branch # remove the branch if there
48+ git branch -d $branch &>/dev/null # remove the branch if there
4949git checkout -b $branch
5050composer update
5151
@@ -96,12 +96,15 @@ echo -e "${BOLD}Generate the user guide${NORMAL}"
9696
9797cd user_guide_src
9898
99- # make the UG & embed it in the project root
99+ # make the UG
100100rm -rf build/*
101101make html
102+ make epub
102103
103104cd ..
104105
106+ mv user_guide_src/build/html /docs
107+
105108#---------------------------------------------------
106109# And finally, get ready for merging
107110git add .
@@ -118,18 +121,11 @@ for f in $release_empty; do
118121 mkdir build/$f
119122done
120123
121- zip -r v${version}${qualifier}.zip dist/
122- tar -zcvf v${version}${qualifier}.tar.gz dist/
123- rm -rf dist/*
124- mv *.zip dist/
125- mv *.tar.gz dist/
126-
127- # Can't forget the epub
128- cd user_guide_src
129- make epub
130- cd ..
124+ # add the docs
131125mv user_guide_src/build/epub/CodeIgniter4.epub dist/CodeIgniter-${version}${qualifier}.epub
132- mv user_guide_src/build/html /dist/docs
126+
127+ zip -r dist/v${version}${qualifier}.zip build/
128+ tar -zcvf dist/v${version}${qualifier}.tar.gz build/
133129
134130#---------------------------------------------------
135131# Done for now
You can’t perform that action at this time.
0 commit comments