Windows 本地部署 Hexo 到 Coding 配deploy的教程

配置_config.yml

1
2
3
4
5
6
7
8
deploy: # 定义部署
- type: git
repository:
coding: git@e.coding.net:
branch: master
message: message # git commit -m "message"
name: zhan
email: 169@qq.com

image-20201119211940889

安装hexo-deployer-git

1
2
npm config set registry http://registry.npm.taobao.org
npm install hexo-deployer-git --save

预览

1
2
npm i
hexo cl && hexo s

部署到Coding

1
hexo cl && hexo g && hexo d