markdown自动发布

描述:整个流程就是使用hexo在GitHub上搭建博客架构,然后用markdown编写博客,利用Mac自动带的Automator程序检测文件创建,自动运行脚本命令。

Automator程序脚本设置

  1. PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

  2. cd /Users/ziv/Documents/MyBlog/source/_posts

  3. hexo g

  4. hexo d