Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowwarmth authored Jan 14, 2025
1 parent e7c60a6 commit e9ca8ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e9ca8ba

Please sign in to comment.