From 4e650cac97170aa344f6883d1d90a25e8592d1c6 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sun, 28 Jul 2024 12:53:30 +0200 Subject: [PATCH] chore: remove unnecessary code for deleting old deployment (#2471) The EBUSY error still shows up sometimes, but now we get also an error if the env is still in "being deleted" state while trying to deploy the new version. --- .github/workflows/deploy-preview.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 3b17313af..9585eee6a 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -62,8 +62,6 @@ jobs: - name: Deploy Web App id: deploy_web run: | - # Delete old deployment (otherwise we get a spawn EBUSY error when running the workflow again) - az staticwebapp environment delete --name jabref-online --environment-name $env:PREVIEW_NAME --yes || true # Workaround for https://github.com/Azure/static-web-apps-cli/issues/557 and https://github.com/Azure/static-web-apps-cli/issues/565 $output = pnpm swa deploy .output\public --env $env:PREVIEW_NAME --verbose=silly 2>&1 | Out-String Write-Host $output