chore(docs): add set gh-pages branches name

This commit is contained in:
YunYouJun 2023-03-28 00:39:20 +08:00
parent 08abfed078
commit e0f53ed129
2 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,8 @@ npm run build
> `gh-pages` 已由 `.github/workflows/gh-pages.yml` 自动部署。
:::
> 注意修改 `gh-pages.yml` 中的 `on.push.branches` 为你源代码所在的分支,默认为 `main`
::: en
When you use `pnpm create valaxy` to create a template project, it contains the file [`.github/workflows/gh-pages.yml`](https://github.com/YunYouJun/valaxy/blob/main/packages/create-valaxy/template/.github/workflows/gh-pages.yml) for the CI workflow of GitHub Actions.

View File

@ -3,6 +3,8 @@ name: GitHub Pages
on:
push:
branches:
# The branch where the project source code resides
# 项目源代码所在的分支
- main
jobs: