浏览代码

checkout latest before moving to production (#3473)

ianedwards 3 年之前
父节点
当前提交
06a8f018b5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Taskfile.yaml

+ 6 - 0
Taskfile.yaml

@@ -4,6 +4,12 @@ tasks:
   move-to-production:
   move-to-production:
     desc: Move the current branch to production
     desc: Move the current branch to production
     cmds:
     cmds:
+    - cmd: git fetch origin --tags 
+      silent: true
+    - cmd: git checkout master
+      silent: true
+    - cmd: git pull origin master
+      silent: true
     - cmd: git tag -d production
     - cmd: git tag -d production
       ignore_error: false
       ignore_error: false
       silent: true
       silent: true