avatar

Catalog
Deploy hexo blog to coding and Github

If you want to deploy hexe g to coding and Github at the same time, you need to modify the deployment configuration of the site configuration file _config.yml
Original configuration

Code
1
2
3
4
deploy:
   type: git
   repo: git@github.com: username / username.git
   branch: master

change into

Code
1
2
3
4
5
6
deploy:
   type: git
   repo:
     gitee: git@gitee.com: username / username.git
     github: git@github.com: username / repository name.git
   branch: master

My configuration is as follows

Code
1
2
3
4
5
6
deploy:
   type: git
   repository:
      github: https://github.com/Johnwhite-leaf/Johnwhite-leaf.github.io.git
      coding: git@e.coding.net: dreamcell / dream.git
   branch: master

I submit the SSH key used here. This method has a benefit. You do not need to enter your username and password when submitting. If you are used to http, just change the address to the corresponding http address.

Author: John White
Link: https://johnwhite-leaf.github.io/articles/eb297d54/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
    微信
  • 支付宝
    支付宝

Comment