Skip to content

Commit 3687557

Browse files
committed
even more logging
1 parent a8e81fe commit 3687557

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/deploy_to_hf.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,8 @@ if [ "$PRIVATE" = true ]; then
563563
PRIVATE_FLAG="--private"
564564
fi
565565

566+
echo "Creating space: $SPACE_REPO"
567+
echo "Command: hf repo create $SPACE_REPO --repo-type space --space_sdk docker --exist-ok $PRIVATE_FLAG ${TOKEN_ARGS[@]+"${TOKEN_ARGS[@]}"}"
566568
# create the space if it doesn't exist
567569
CREATE_OUTPUT=$(hf repo create "$SPACE_REPO" --repo-type space --space_sdk docker --exist-ok $PRIVATE_FLAG ${TOKEN_ARGS[@]+"${TOKEN_ARGS[@]}"} 2>&1)
568570
CREATE_EXIT_CODE=$?
@@ -572,6 +574,8 @@ if [ $CREATE_EXIT_CODE -ne 0 ]; then
572574
# Continue anyway - space might already exist
573575
fi
574576

577+
echo "Uploading files to space: $SPACE_REPO"
578+
echo "Command: hf upload --repo-type=space $PRIVATE_FLAG ${TOKEN_ARGS[@]+"${TOKEN_ARGS[@]}"} $SPACE_REPO $CURRENT_STAGING_DIR_ABS"
575579
# upload the staged content (if repo doesn't exist, it will be created with the privacy setting)
576580
SPACE_UPLOAD_RESULT=$(hf upload --repo-type=space $PRIVATE_FLAG ${TOKEN_ARGS[@]+"${TOKEN_ARGS[@]}"} "$SPACE_REPO" "$CURRENT_STAGING_DIR_ABS" 2>&1)
577581
UPLOAD_EXIT_CODE=$?

0 commit comments

Comments
 (0)