Enhance CI workflow for deployment artifact preparation
CI / build (push) Has been skipped
CI / deploy (push) Failing after 42s

- 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.
This commit is contained in:
eewing
2026-02-17 10:00:15 -06:00
parent 43712043d6
commit 5eae8b6611
+4 -1
View File
@@ -63,8 +63,11 @@ jobs:
- name: Prepare deploy artifact - name: Prepare deploy artifact
run: | run: |
ls -la
test -d build || (echo "Missing build/ (SvelteKit output). Check Build step." && exit 1)
mkdir -p deploy 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 cd deploy && bun install --frozen-lockfile --production
- name: Setup SSH known hosts - name: Setup SSH known hosts