File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -482,12 +482,17 @@ jobs:
482
482
steps :
483
483
- attach_workspace :
484
484
at : /tmp/dist
485
-
485
+ - run :
486
+ name : Install AzCopy
487
+ command : |
488
+ wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux
489
+ tar -xf azcopy.tar.gz
490
+ mv ./azcopy_linux_amd64_*/azcopy /usr/local/bin/
486
491
- run :
487
492
name : deploy
488
493
command : |
489
494
if [ $AZURE_STORAGE_SAS_TOKEN ]; then
490
- az storage blob upload-batch -d reactspectrum -s /tmp/dist --account-name reactspectrum
495
+ azcopy copy " /tmp/dist/*" "https://reactspectrum.blob.core.windows.net/reactspectrum${AZURE_STORAGE_SAS_TOKEN}" --recursive
491
496
fi
492
497
493
498
# Separate deploy workflow for the test docs built w/ verdaccio packages so it doesn't hold up the other deploy workflows
@@ -497,11 +502,17 @@ jobs:
497
502
steps :
498
503
- attach_workspace :
499
504
at : /tmp/verdaccio_dist
505
+ - run :
506
+ name : Install AzCopy
507
+ command : |
508
+ wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux
509
+ tar -xf azcopy.tar.gz
510
+ mv ./azcopy_linux_amd64_*/azcopy /usr/local/bin/
500
511
- run :
501
512
name : deploy
502
513
command : |
503
514
if [ $AZURE_STORAGE_SAS_TOKEN ]; then
504
- az storage blob upload-batch -d reactspectrum/$CIRCLE_SHA1/ verdaccio -s /tmp/verdaccio_dist/*/ verdaccio --account-name reactspectrum
515
+ azcopy copy "/tmp/verdaccio_dist/*/ verdaccio/*" "https://reactspectrum.blob.core.windows.net/reactspectrum/$CIRCLE_SHA1/ verdaccio${AZURE_STORAGE_SAS_TOKEN}" --recursive
505
516
fi
506
517
507
518
deploy-production :
@@ -510,9 +521,15 @@ jobs:
510
521
steps :
511
522
- attach_workspace :
512
523
at : /tmp/dist
524
+ - run :
525
+ name : Install AzCopy
526
+ command : |
527
+ wget -O azcopy.tar.gz https://aka.ms/downloadazcopy-v10-linux
528
+ tar -xf azcopy.tar.gz
529
+ mv ./azcopy_linux_amd64_*/azcopy /usr/local/bin/
513
530
- run :
514
531
name : deploy
515
- command : az storage blob upload-batch -d "\$web" -s /tmp/dist/production/docs --account-name reactspectrum --overwrite true
532
+ command : azcopy copy " /tmp/dist/production/docs/*" "https:// reactspectrum.blob.core.windows.net/\$web${AZURE_STORAGE_SAS_TOKEN}" --recursive
516
533
517
534
comment :
518
535
executor : rsp
You can’t perform that action at this time.
0 commit comments