Skip to content

Commit c975351

Browse files
committed
fix(ci): add build artifact verification before upload
1 parent 0325866 commit c975351

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,27 @@ jobs:
278278
fi
279279
}
280280
281+
- name: Verify build artifacts before upload
282+
run: |
283+
echo "=== Verifying build artifacts before upload ==="
284+
if [ ! -d "dist" ]; then
285+
echo "❌ dist directory not found"
286+
exit 1
287+
fi
288+
echo "✅ dist directory found"
289+
find dist -maxdepth 2 -type f -o -type d | head -20
290+
if [ ! -d "dist/apps" ]; then
291+
echo "❌ dist/apps directory not found"
292+
exit 1
293+
fi
294+
echo "✅ dist/apps directory found"
295+
if [ ! -d "dist/apps/web" ]; then
296+
echo "❌ dist/apps/web directory not found"
297+
exit 1
298+
fi
299+
echo "✅ dist/apps/web directory found"
300+
echo "=== Build artifacts verified successfully ==="
301+
281302
- name: Upload build artifacts
282303
uses: actions/upload-artifact@v5
283304
with:

0 commit comments

Comments
 (0)