From 5eae8b661113f915fb74bf49fd8a1bb1733daa39 Mon Sep 17 00:00:00 2001 From: eewing Date: Tue, 17 Feb 2026 10:00:15 -0600 Subject: [PATCH] Enhance CI workflow for deployment artifact preparation - Added a check to ensure the build directory exists before proceeding with deployment. - Updated the artifact copying process to conditionally include the appropriate lock file. - Improved logging by listing files in the deploy directory for better visibility during CI runs. --- .gitea/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 32aa429..d0a27c8 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -63,8 +63,11 @@ jobs: - name: Prepare deploy artifact run: | + ls -la + test -d build || (echo "Missing build/ (SvelteKit output). Check Build step." && exit 1) mkdir -p deploy - cp -r build package.json bun.lockb deploy/ + cp -r build package.json deploy/ + (test -f bun.lock && cp bun.lock deploy/) || (test -f bun.lockb && cp bun.lockb deploy/) || true cd deploy && bun install --frozen-lockfile --production - name: Setup SSH known hosts