Hexo 博客 + GitHub Actions + Cloudflare Pages 自动部署
Hexo 博客 + GitHub Actions + Cloudflare Pages 自动部署刚刚做了一下博客的自动部署和关联我之前买的域名,差点给我折腾4,写一篇教程好了。 本文档记录了如何将本地 Hexo 博客源码托管在 GitHub,并通过 GitHub Actions 自动构建并推送到 Cloudflare Pages (Direct Upload 模式) 的完整流程。 1. 准备工作 本地已安装 Node.js 和 Hexo 和 git 和 cnpm。可以用node -v hexo -v git –version cnpm - v查看有没有安装(没有安就npm install -g cnpm全局安装) 拥有一个 GitHub 账号。 拥有一个 Cloudflare 账号。 2. 本地 Hexo 与 GitHub 仓库关联2.1 初始化与主题修复如果你使用了第三方主题(如 Butterfly)并是通过 git clone 下载的,必须删除主题内的 .git 文件夹,否则会导致子模块冲突,Cloudflare 无法拉取主题文件。 12345678910111213# 1...
我的第一篇博客
这是我的第一篇博客,这里大概会更新一些已经做好的项目/在做的项目/新坑记录ww
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
