使用 github workflow 部署 github page
动机
随着个人技术的学习,我拥有越来越多的仓库了。对于每一个前端项目,往往都需要提供一个 url 链接,来访问页面。
技术选型
不想过多使用托管平台
用 github 工作流就地在当前仓库内部署页面
开启 github 仓库允许 github action 生成 github page
如果不开启,那么后续会出现以下故障,如图所示:
log
Error: Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.
Error: HttpError: Not Found