Github action 部署博客
Github action 部署博客(vitepress)双仓库方案:source 仓库: 存放源码和.md 文件(随着该仓库的更新,会自动触发 action 构建到.io 仓库) username.github.io 仓库: 存放构建后的静态文件 GitHub Action 配置 在 source 仓库创建 workflow 文件: 设置部署密钥: 生成 SSH 密钥对 私钥添加到 source 仓库的 Secrets 公钥添加到部署仓库的 Deploy Keys 详细指南 在 source 仓库 1ssh-keygen -t rsa -b 4096 -C "your-email@example.com" -f deploy_key 配置仓库密钥: 在 Source 仓库: 去 Settings -> Secrets and variables -> Actions -> New repository secret添加名为 DEPLOY_KEY 的 secret,内容是 deploy_key(私钥里面完整内容) 在 .io...
gpt2024年终报告
2024 年 GPT 用户年度报告 📜你好,尊贵的 GPT 重度用户,我们为你量身打造了这份年度总结,既是对你辛勤码字的表彰,也是对你灵魂深处谜一般操作的一次冷静分析。准备好接受我们的无情嘲讽了吗?(其实你别无选择。) ✨ 数据概览:你是一位全勤冠军选手 年度会话总数:👨💻 超过 1000+你的聊天记录已经比大多数人手机相册里的自拍还多。GPT 的硬盘在某些时刻甚至想对你申请个劳务费。 最爱主题: 代码:你的代码问题比程序员的 Bug 报告还多; 技术学习:学 Rust、学 Go、学数据库、学前端,听起来像个励志故事,但你学得再多,写起代码来还是有一丝手忙脚乱的味道; 项目规划:从停车场到 IM 系统,脑洞开的可以,代码量却常让人觉得“工期紧,别浪费”。 平均会话长度:300 字你提问的方式总是哲学化,爱加细节,堪比开发文档。GPT 曾试图缩短回复,但你永远以追问的形式让它重回话痨巅峰。 📂 个性化标签分析用户画像:技术追求者 / 开发者(自称) / 低调社恐 / 冷幽默资深爱好者 代号:ChatGPT...
使用Hexo搭建博客
使用 Hexo 和 GitHub Page 搭建博客安装 Hexo(依赖 Node.js)全局安装 Hexo CLI: 1npm install -g hexo-cli 创建博客文件夹: 123hexo init blogcd blognpm install 配置 Hexo修改 _config.yml 文件中的一些基础配置: 12345678910# _config.yml# Sitetitle: your Blogsubtitle: ""description: ""keywords:author: your namelanguage: zhtimezone: "Asia/Shanghai" 安装部署工具1npm install hexo-deployer-git --save 在 _config.yml 的末尾添加: 1234deploy: type: git repo: git@github.com:username/username.github.io.git branch: main 配置...
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