经过一天的折腾,我总算折腾好了Github Action部署的博客.
现在我只需要在这个缩减的Working Directory进行我的写作.
(实际只是少了Themes文件夹,对于空间的减少只能说聊胜于无.)
我写的糟糕的Workflow已经开源GitHub,如果有什么问题直接PR即可.
写Workflow中间的坑
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
在安装前指定写modules的位置到runner的家目录即可,参考:此文章
/home/runner/work/_temp/*.sh: line *: *: command not found
不知道为什么Path没有起效,如果出现这种情况,往上面看:
/home/runner/.npm-global/bin/cnpm -> /home/runner/.npm-global/lib/node_modules/cnpm/bin/cnpm
使用/home/runner/.npm-global/bin/cnpm代替即可.
fatal: empty ident name (for runner@fv-az16-908.agihcmjyy0pepganyihdxxwied.bx.internal.cloudapp.net) not allowed
低级的错误,我是个傻逼
1 | git config --global user.email "you@example.com" |
fatal: unable to access ‘https://github.com/EdenJohnson2006/EdenJohnson2006.github.io.git/': The requested URL returned error: 403
fatal: could not read Username for ‘https://github.com': No such device or address
好了就这么多.


Waline是个好东西,在我看来。
既继承了Valine的操作方式又有后台还能实现通知,所以只留了Waline。