本项目为纯静态的 React 单页体验,可直接部署到 GitHub Pages 供外部访问。
- 打开仓库主页,点击
index.html直接在浏览器中查看,或使用本地静态服务器:然后访问 http://localhost:8000。python -m http.server 8000
仓库已随附自动化部署工作流,推送到 main 或 work 分支会触发 GitHub Actions 构建并发布到 Pages。
- 在 GitHub 仓库的 Settings → Pages 中,将 Source 设为 GitHub Actions。
- 确认默认分支(
main或work)启用了 Actions 权限。 - 将最新代码推送到仓库:
git push origin work # 或 main - 工作流完成后,页面会在
https://<你的用户名>.github.io/<仓库名>/可访问。
如需手动触发或查看部署状态,可在 Actions 选项卡中找到 "Deploy static site to GitHub Pages" 工作流。