فهرست منبع

Fixed release website script.

Thanks to xet7 !
Lauri Ojansivu 4 سال پیش
والد
کامیت
b6f60c08e5
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      releases/release-website.sh

+ 5 - 5
releases/release-website.sh

@@ -20,11 +20,11 @@ cd ~/repos/w/wekan.github.io
 git pull
 git pull
 
 
 # 4) Change version number in website
 # 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
 # 5) Change version number in API docs index page
 cd api
 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
 # 6) Create directory for new docs
 mkdir v$2
 mkdir v$2
@@ -42,6 +42,6 @@ mv wekan.html index.html
 cd ~/repos/w/wekan.github.io
 cd ~/repos/w/wekan.github.io
 
 
 # 11) Commit all changes to git and push website changes live
 # 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