Hexo 个人博客仓库初始化流程
Hexo 个人博客仓库初始化流程 graph LR A[Hexo 项目] --> B[安装主题] B --> C{方式选择} C -->|直接克隆| D[git clone] C -->|Submodule| E[git submodule add] D --> F[git init] E --> F F --> G[git add . / commit] G --> H[git push] H --> I[配置 CI/CD 变量] I --> J[推送触发自动构建与部署] 1. 前置准备确保已安装 Hexo 及所需插件: 12npm install hexo-cli -gnpm install 2. 安装主题本文使用 Butterfly 主题(官方文档)。 方式一:直接克隆(推荐)1git clone -b master https://github.com/jerryc127/hexo-theme-b...
Gitea Action 自动打包发布流程
Hexo博客在Gitea Action 自动打包发布流程每次推送代码到 master 分支时,Gitea Action 会自动完成:构建 → 打包 → 发布 Release → 同步到服务器。 工作流流程 graph TD A[Push to master] --> B[触发工作流] B --> C{是否自动发布提交?} C -->|是| D[跳过退出] C -->|否| E{Gatekeeper: 是否已有 Release 标签?} E -->|是| D E -->|否| F[Checkout + Setup Node.js] F --> G[Hexo 生成静态文件] G --> H[打包 public/ 为 tar.gz] H --> I[创建 Release 并上传附件] I --> J[同步 public/ 到公网服务器] 各步骤说明1. 触发条件1234on: push: branche...
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