From d32cecf52c977f6b5c3e738a501883b40c84e5ea Mon Sep 17 00:00:00 2001 From: Vitalij Vascenko Date: Wed, 29 Jan 2025 15:11:37 +0100 Subject: [PATCH 1/2] ci: Update exclude pattern --- .github/workflows/deploy-widgetbook-azure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-widgetbook-azure.yml b/.github/workflows/deploy-widgetbook-azure.yml index c66723c9..c6dcbeff 100644 --- a/.github/workflows/deploy-widgetbook-azure.yml +++ b/.github/workflows/deploy-widgetbook-azure.yml @@ -55,4 +55,4 @@ jobs: uses: azure/CLI@v2 with: inlineScript: | - az storage blob upload-batch --overwrite true --destination mews-ui-widgetbook/release/app --source optimus_widgetbook/build/web --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login --pattern "!(manifest.json|index.html)" + az storage blob upload-batch --overwrite true --destination mews-ui-widgetbook/release/app --source optimus_widgetbook/build/web --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login --pattern "!manifest.json;!index.html" From 6331910cf490dde3d88b088a01d9a388bcd39652 Mon Sep 17 00:00:00 2001 From: Vitalij Vascenko Date: Wed, 29 Jan 2025 15:35:21 +0100 Subject: [PATCH 2/2] upd --- .github/workflows/deploy-widgetbook-azure.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-widgetbook-azure.yml b/.github/workflows/deploy-widgetbook-azure.yml index c6dcbeff..f6d10f8a 100644 --- a/.github/workflows/deploy-widgetbook-azure.yml +++ b/.github/workflows/deploy-widgetbook-azure.yml @@ -51,8 +51,13 @@ jobs: inlineScript: | az storage blob upload --overwrite true --container-name mews-ui-widgetbook --file optimus_widgetbook/build/web/index.html --name release/index.html --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login + - name: Remove uploaded files before the batch upload + run: | + rm optimus_widgetbook/build/web/manifest.json + rm optimus_widgetbook/build/web/index.html + - name: Upload assets to the app folder uses: azure/CLI@v2 with: inlineScript: | - az storage blob upload-batch --overwrite true --destination mews-ui-widgetbook/release/app --source optimus_widgetbook/build/web --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login --pattern "!manifest.json;!index.html" + az storage blob upload-batch --overwrite true --destination mews-ui-widgetbook/release/app --source optimus_widgetbook/build/web --account-name ${{ secrets.AZURE_ACCOUNT_NAME }} --auth-mode login