File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -549,6 +549,12 @@ else
549549fi
550550
551551SPACE_REPO=" ${HF_NAMESPACE} /${ENV_NAME}${SPACE_SUFFIX} "
552+
553+ # Get absolute path to staging directory
554+ if [ ! -d " $CURRENT_STAGING_DIR " ]; then
555+ echo " Error: Staging directory not found: $CURRENT_STAGING_DIR " >&2
556+ exit 1
557+ fi
552558CURRENT_STAGING_DIR_ABS=$( cd " $CURRENT_STAGING_DIR " && pwd)
553559
554560# Determine privacy flag (only add --private if needed, default is public)
@@ -573,6 +579,12 @@ if [ $UPLOAD_EXIT_CODE -ne 0 ]; then
573579 echo " ❌ Upload failed with exit code $UPLOAD_EXIT_CODE " >&2
574580 echo " Error output:" >&2
575581 echo " $SPACE_UPLOAD_RESULT " >&2
582+ echo " " >&2
583+ echo " Debug info:" >&2
584+ echo " Space: $SPACE_REPO " >&2
585+ echo " Staging dir: $CURRENT_STAGING_DIR_ABS " >&2
586+ echo " Files to upload:" >&2
587+ ls -la " $CURRENT_STAGING_DIR_ABS " >&2 || true
576588 exit 1
577589fi
578590# print the URL of the deployed space
You can’t perform that action at this time.
0 commit comments