Skip to content

Commit 2f5b025

Browse files
authored
Refactor build workflow to copy .next directory
Remove rsync command and copy .next directory directly.
1 parent bf6eafb commit 2f5b025

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-to-branch.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ jobs:
6666
git config user.email "github-actions@github.com"
6767
6868
# 拷贝 .next 但排除 cache
69-
rsync -av --exclude='cache' .next/ /tmp/next-build
69+
# rsync -av --exclude='cache' .next/ /tmp/next-build
70+
rm -rf .next/cache
71+
cp -r .next /tmp/next-build
7072
7173
# 切换或创建 build 分支
7274
git checkout -B build

0 commit comments

Comments
 (0)