创建 vite vue ts 模板:使用 Github Actions 部署到 Github Pages
·
配置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
项目
imomaliev/[vue-ts
Quick + View + TypeScript 模板
更多推荐
所有评论(0)