jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.77k stars 299 forks source link

How to use 'git push' with deploy? #204

Closed shuroki closed 4 years ago

shuroki commented 4 years ago

I want to add one command 'git push' when click on deploy. I added the command in shell script and executed it, but it was not successful.

xechoz commented 4 years ago

把你的 _config.ymldeployCommand 改一下

admin:
   deployCommand: './deploy.sh' # 这个是你要执行的 bash。里面添加 git push 命令就行