From 2497836d9b12c528ee5ba9af29313c95e24ca953 Mon Sep 17 00:00:00 2001 From: Pedro Debevere Date: Tue, 14 Jan 2025 12:14:19 +0100 Subject: [PATCH] Update azure-static-web-apps-happy-dune-071cbee03.yml (cherry picked from commit 221781ef1fa0d3e1f94d6e84d1fa41d0c05af4d9) --- ...e-static-web-apps-happy-dune-071cbee03.yml | 48 +++++++++++++------ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/.github/workflows/azure-static-web-apps-happy-dune-071cbee03.yml b/.github/workflows/azure-static-web-apps-happy-dune-071cbee03.yml index 03d0f577..6488e76c 100644 --- a/.github/workflows/azure-static-web-apps-happy-dune-071cbee03.yml +++ b/.github/workflows/azure-static-web-apps-happy-dune-071cbee03.yml @@ -76,12 +76,22 @@ jobs: run: Expand-Archive -Path _site.zip -DestinationPath ./_site shell: pwsh - name: Upload the new files - uses: bacongobbler/azure-blob-storage-upload@main - with: - source_dir: _site - container_name: $web - connection_string: ${{ secrets.AZURE_SA_DOCSCONNECTORS_SWA }} - sync: 'true' + env: + AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_SA_DOCSCONNECTORS_SWA }} + run: | + wget https://aka.ms/downloadazcopy-v10-linux + tar -xvf downloadazcopy-v10-linux + sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/ + az storage blob sync \ + --source _site \ + --container '$web' + # - name: Upload the new files + # uses: bacongobbler/azure-blob-storage-upload@main + # with: + # source_dir: _site + # container_name: $web + # connection_string: ${{ secrets.AZURE_SA_DOCSCONNECTORS_SWA }} + # sync: 'true' deploy_job_Storage_Account: @@ -103,14 +113,24 @@ jobs: rm -f ./_site/README.html find ./_site -name 'toc.html' -type f -delete - name: Upload the new files - uses: bacongobbler/azure-blob-storage-upload@main - with: - source_dir: _site - container_name: docs-connectors - connection_string: ${{ secrets.AZURE_STORAGE_ACCOUNT_DOCS_CONNECTION_STRING }} - # Sync: true keeps the source and destination in sync, - # otherwise changed files and new would be pushed, but deleted wouldn't be removed. - sync: 'true' + env: + AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_STORAGE_ACCOUNT_DOCS_CONNECTION_STRING }} + run: | + wget https://aka.ms/downloadazcopy-v10-linux + tar -xvf downloadazcopy-v10-linux + sudo cp ./azcopy_linux_amd64_*/azcopy /usr/bin/ + az storage blob sync \ + --source _site \ + --container docs-connectors + # - name: Upload the new files + # uses: bacongobbler/azure-blob-storage-upload@main + # with: + # source_dir: _site + # container_name: docs-connectors + # connection_string: ${{ secrets.AZURE_STORAGE_ACCOUNT_DOCS_CONNECTION_STRING }} + # # Sync: true keeps the source and destination in sync, + # # otherwise changed files and new would be pushed, but deleted wouldn't be removed. + # sync: 'true' reindex_azure_search: runs-on: ubuntu-latest