-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7c60a6
commit e9ca8ba
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,11 @@ jobs: | |
run: | | ||
npm run build | ||
# 发布构建产物到 build 分支 | ||
- name: Push build to build branch | ||
- name: Push build to main branch | ||
run: | | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
git checkout -b main || git checkout main # 如果 build 分支不存在则创建 | ||
git add . | ||
git commit -m "编译提交" | ||
git push --force origin build | ||
git push --force origin main |