浏览代码

Update publish.sh to rebase dev after publish.

Sasha Hilton 3 年之前
父节点
当前提交
bf44c8c170
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      publish.sh

+ 7 - 0
publish.sh

@@ -89,12 +89,19 @@ function updateRepo {
   git push origin v$1
 }
 
+function rebaseDev {
+  git checkout dev
+  git merge master
+  git push
+}
+
 function run {
   switchBranch
   updateVersion $1
   commitAndTag $1
   publishCrates
   updateRepo $1
+  rebaseDev
   echo "Successfully published v$1 to crates.io and uploaded changes to repo."
 }