raleighwi.se

Got this working on github pages!

written April 13, 2021 // 1 min read

Well, this was a pain in the butt.

I didn’t feel like messing with github actions again, as I hate that thing with a passion. So I was looking through the hexo docs and I found a usefull one-command deploy option. All you have to do is add this little tidbit to your _config.yaml.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

deploy:

  type: git

  repo: https://github.com/<username>/<project>

  # example, https://github.com/l3gacyb3ta/l3gacyb3ta.github.io

  branch: <whatever branch you use>

You also have to install hexo-deployer-git, which is simple, just use this:

$ npm install hexo-deployer-git --save

And then all you have to do to deploy is:

$ hexo deploy

That was easy!


I'm always happy to have follow up conversations or hear your thoughts! Shoot me an email at l3gacy.b3ta@disroot.org or yell at me on Twitter.

If you like this content and want to keep up to date with my latest ramblings and whatever else I've found interesting on the web, you should consider subscribing to my newsletter :) Not convinced yet? Read some previous issues here!

← jump back up the path ladder