From a619ff3bbd65c27e85f1167b72fb2cda8f5fb6eb Mon Sep 17 00:00:00 2001 From: John Leacox Date: Tue, 16 Jul 2024 10:53:59 -0500 Subject: [PATCH] Use b2v3 cli in the ci/cd script (#80) (#199) --- maybe_upload_build_results | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maybe_upload_build_results b/maybe_upload_build_results index 76425e51b..d4513b651 100755 --- a/maybe_upload_build_results +++ b/maybe_upload_build_results @@ -26,7 +26,7 @@ if test ! -f $SRC; then fi # verify that b2 works -b2 version +b2v3 version if test -z "$B2_ACCOUNT_ID" -o -z "$B2_APPLICATION_KEY"; then echo "NOT uploading build results because no credentials are provided." @@ -44,7 +44,7 @@ if test -z "$B2_UPLOAD_BUCKET"; then fi echo authorizing account -b2 authorize_account $B2_ACCOUNT_ID $B2_APPLICATION_KEY +b2v3 authorize_account $B2_ACCOUNT_ID $B2_APPLICATION_KEY status=$? if test $status != "0"; then echo "failed to authorize with b2 server" @@ -56,7 +56,7 @@ fi unset B2_APPLICATION_KEY echo uploading $SRC to bucket: $B2_UPLOAD_BUCKET -b2 upload_file --contentType application/octet $B2_UPLOAD_BUCKET $SRC $DEST +b2v3 upload_file --contentType application/octet $B2_UPLOAD_BUCKET $SRC $DEST status=$? if test $status != "0"; then echo "failed to upload $SRC to b2"