We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e829b5 commit 2ebdc2aCopy full SHA for 2ebdc2a
.github/workflows/build-to-branch.yml
@@ -66,7 +66,10 @@ jobs:
66
git config user.email "github-actions@github.com"
67
68
# 拷贝 .next 但排除 cache
69
- rsync -av --exclude='cache' .next/ /tmp/next-build/
+ # rsync -av --exclude='cache' .next/ /tmp/next-build/
70
+ rm -rf .next/cache
71
+ mkdir -p /tmp/next-build
72
+ cp -r .next/* /tmp/next-build/
73
74
# 切换或创建 build 分支
75
git checkout -B build
@@ -75,7 +78,10 @@ jobs:
78
git rm -rf .
76
79
77
80
# 把 build 产物拷进去(按需修改)
- rsync -av /tmp/next-build/ .next/
81
+ # rsync -av /tmp/next-build/ .next/
82
+ rm -rf .next
83
+ mkdir -p .next
84
+ cp -r /tmp/next-build/* .next/
85
86
git add .next
87
git commit -m "chore: build from $GITHUB_SHA"
0 commit comments