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
前言在使用 Hexo 搭建博客时,每次更新内容都需要手动执行构建和部署命令,比较繁琐。通过 GitHub Actions 可以实现自动化部署,当我们推送代码到仓库时,GitHub Actions 会自动帮我们完成构建和部署。
配置步骤1. 创建工作流文件在项目根目录创建 .github/workflows/deploy.yml 文件:
1234567891011121314151617181920212223242526272829303132333435name: Deploy Blogon:push:branches:- main # 当 main 分支收到推送时触发jobs:deploy:runs-on: ubuntu-lateststeps:name: Checkout Repositoryuses: actions/checkout@v4with:submodules: true # 检出子模块fetch-depth: 0name: Setup Nodeuses: actions/setup-node@v4with:node-version: '20.x ...
欢迎来到我的博客这是我的第一篇博客文章。我将在这里分享我的想法和经验。
关于我
热爱技术
喜欢分享
正在学习中
未来计划
分享技术文章
记录学习心得
与大家交流
print("Hello, World!")


