Skip to content

Commit

Permalink
use main as default github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
niltor committed Apr 2, 2024
1 parent 39917fb commit 32af235
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["publish"]
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@
## 更新

上游代码的更新以`main`分支为准,你可以将`main`分支合并到你的`main`分支,以获取最新的代码更新。
上游代码的更新以`dev`分支为准,你可以将`dev`分支合并到你的`dev`分支,以获取最新的代码更新。

`publish`作为默认的构建发布的分支,请不要合并到你的`publish`分支。你也可以手动修改其他分支作为构建发布的分支。
`main`作为默认的构建发布的分支,请不要合并到你的`main`分支。

建议您使用`dev`或其他自己的分支来编写博客和自定义内容,然后再合并到`main`分支以触发自动构建。

## 二次开发

Expand Down

0 comments on commit 32af235

Please sign in to comment.