GitHub Actions deployment for Hexo¶
GitHub Actions deployment for Hexo allows for the automation of the blog generation and publication process. By defining a workflow, typically stored at .github/workflows/node.js.yml, users can ensure that their site is built and deployed automatically whenever changes are pushed to the repository^[600-developer__blog__hexo-blog__update-hexo.md].
Configuration¶
To successfully build the Hexo site, the workflow relies on the _config.yml settings file^[600-developer__blog__hexo-blog__update-hexo.md].
Dependencies¶
The deployment and rendering process requires specific Hexo plugins to function correctly:
- Git Deployment: The
hexo-deployer-gitpackage is required to deploy the generated files to a Git repository^[600-developer__blog__hexo-blog__update-hexo.md]. - Image Rendering: The
hexo-renderer-markedpackage is often necessary to prevent image insertion issues during the build process^[600-developer__blog__hexo-blog__update-hexo.md].
Related Concepts¶
- CI/CD
- [[Hexo]]
Sources¶
^[600-developer__blog__hexo-blog__update-hexo.md]