Fixed release website script.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2021-03-31 18:09:47 +03:00
parent 03d7940829
commit b6f60c08e5

View file

@ -20,11 +20,11 @@ cd ~/repos/w/wekan.github.io
git pull
# 4) Change version number in website
sed -i 's|v$1|v$2|g' index.html
sed -i "s|>v$1<\/span>|>v$2<\/span>|g" index.html
# 5) Change version number in API docs index page
cd api
sed -i 's|v$1|v$2|g' index.html
sed -i "s|v$1|v$2|g" index.html
# 6) Create directory for new docs
mkdir v$2
@ -42,6 +42,6 @@ mv wekan.html index.html
cd ~/repos/w/wekan.github.io
# 11) Commit all changes to git and push website changes live
git add --all
git commit -m "v$2"
git push
#git add --all
#git commit -m "v$2"
#git push