Skip to content

Commit 41051ae

Browse files
committed
배포 yaml 파일 수정
public디렉토리가 비어있더라도 배포 아티팩트에 Public디렉토리 존재 보장하도록 함
1 parent 963aaee commit 41051ae

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ jobs:
4242
mkdir deploy_package
4343
cp -r apps/editor/.next/standalone/* deploy_package/
4444
mkdir -p deploy_package/.next/static
45+
mkdir -p deploy_package/public
4546
cp -r apps/editor/.next/static/* deploy_package/.next/static/
46-
cp -r apps/editor/public deploy_package/public
47+
48+
if [ -d apps/editor/public ]; then
49+
cp -r apps/editor/public/* deploy_package/public/
50+
fi
51+
4752
cp apps/editor/appspec.yml deploy_package/
4853
cp -r apps/editor/scripts deploy_package/scripts
4954
cp apps/editor/.env deploy_package/

0 commit comments

Comments
 (0)