配置github工作流部署到github页面

1.为我们的build.yml添加部署步骤

+
+ - 名称:部署
+ # 仅部署 16.x 版本
+ 如果:matrix.node-version u003du003d '16.x'
+ 用途:JamesIves/github-pages-deploy-action@4.1.4
+ 与:
+ branch: gh-pages # 动作应该部署到的分支。
+ folder: dist # 动作应该部署的文件夹。

2.git add -u

3.git commit -m 'Add deploy to github pages step for github workflow'

链接

  • https://github.com/marketplace/actions/deploy-to-github-pages

  • https://docs.github.com/en/actions/learn-github-actions/managing-complex-workflows

  • https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions

项目

GitHub 徽标imomaliev/[vue-ts

Quick + View + TypeScript 模板

Logo

前往低代码交流专区

更多推荐