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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user