Skip to content

Hexo deployment workflow

The Hexo deployment workflow is a process that automates the generation of static files and their publication to a web server, typically GitHub Pages^[600-developer-blog-hexo-blog-create-blog-hexo.md].

Prerequisites

Before deploying, a specific deployment plugin must be installed in the project environment^[600-developer-blog-hexo-blog-create-blog-hexo.md].

npm install hexo-deployer-git --save^[600-developer-blog-hexo-blog-create-blog-hexo.md]

Configuration settings must also be updated in the _config.yml file to specify the deployment target URL^[600-developer-blog-hexo-blog-create-blog-hexo.md].

Process

The standard deployment sequence involves two primary commands executed in order^[600-developer-blog-hexo-blog-create-blog-hexo.md]:

  1. Generate: Run hexo generate to compile the content into static files^[600-developer-blog-hexo-blog-create-blog-hexo.md].
  2. Deploy: Run hexo deploy to publish the generated files^[600-developer-blog-hexo-blog-create-blog-hexo.md].

These steps can be combined into a single workflow command, often configured within package.json^[600-developer-blog-hexo-blog-create-blog-hexo.md].

Sources

^[600-developer-blog-hexo-blog-create-blog-hexo.md]