Skip to content

Commit 7e67c07

Browse files
committed
fix(ci): use rsync to flatten artifact and ignore broken symlinks
1 parent b0dfcd4 commit 7e67c07

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/cms_cms.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ jobs:
4848
cp -rL node_modules/@swc .next/standalone/node_modules/
4949
5050
mkdir deployment
51-
cp -rL .next/standalone/. deployment/
51+
rsync -aL .next/standalone/ deployment/ || echo "Rsync: Some files could not be copied (likely broken symlinks)"
52+
cp -rL public deployment/public || true
53+
cp -rL .next/static deployment/.next/static || true
5254
5355
cd deployment
5456
tar -czf ../release.tar.gz .

.github/workflows/main_cms.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ jobs:
4949
cp -rL node_modules/@swc .next/standalone/node_modules/
5050
5151
mkdir deployment
52-
cp -rL .next/standalone/. deployment/
52+
rsync -aL .next/standalone/ deployment/ || echo "Rsync: Some files could not be copied (likely broken symlinks)"
53+
cp -rL public deployment/public || true
54+
cp -rL .next/static deployment/.next/static || true
5355
5456
cd deployment
5557
tar -czf ../release.tar.gz .

0 commit comments

Comments
 (0)