浏览代码

Implement a post commit to deploy web content locally

DricomDragon 5 年之前
父节点
当前提交
6315af101d
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      ci/githooks/post-commit

+ 13 - 0
ci/githooks/post-commit

@@ -0,0 +1,13 @@
+#!/usr/bin/fish
+
+function ech --description 'Echo with prefix'
+	echo '[post-commit]' $argv
+end
+
+eval ci/install-web-files.fish
+
+if test $status -ne 0
+	ech 'Problem while running installation.'
+else
+	ech 'Web content correctly deployed.'
+end