在部署到 GitHub 之前,请确认:
- Python 依赖已安装 (
pip install -r requirements.txt) - 本地测试成功 (
python quick_test.py或python simple_test.py) - 已生成网页文件 (
docs/index.html存在) - Git 已安装 (
git --version) - 已有 GitHub 账号
.\deploy.ps1按照提示操作即可!
git init
git add .
git commit -m "Initial commit: DailyPaper"- 访问 https://github.com/new
- 仓库名:
DailyPaper - 类型:
Public - 不勾选 "Add a README file"
- 点击 "Create repository"
git remote add origin https://github.com/4everWZ/DailyPaper.git
git branch -M main
git push -u origin main- 进入 Settings > Pages
- Source:
Deploy from a branch - Branch:
gh-pages/(root) - 点击 Save
- 进入 Settings > Actions > General
- Workflow permissions:
Read and write permissions - 勾选 "Allow GitHub Actions to create and approve pull requests"
- 点击 Save
- 进入 Actions 标签
- 选择 "Update Papers Daily"
- 点击 "Run workflow"
- 等待运行完成(绿色 ✓)
- 等待 2-3 分钟
- 访问
https://4everWZ.github.io/DailyPaper/
- ✅ GitHub Actions 显示绿色 ✓
- ✅ 创建了
gh-pages分支 - ✅ 网站可以正常访问
- ✅ 显示了论文列表
- 检查 Settings > Actions 权限设置
- 查看 Actions 日志获取详细错误
- 确认 Pages 配置使用
gh-pages分支 - 等待 3-5 分钟让部署完成
- 检查 Actions 是否成功
- 手动触发 Actions: Actions > Run workflow
- 检查
config.yaml中的配置 - 查看 Actions 运行日志
✅ 已配置!每天 UTC 0:00 自动运行
Actions > Update Papers Daily > Run workflow
编辑 config.yaml 然后:
git add config.yaml
git commit -m "Update config"
git push- 详细部署指南:DEPLOYMENT.md
- 使用说明:docs/USAGE.md
- 项目介绍:README.md
🎯 目标:让你的论文汇总工具在 5 分钟内上线!