Skip to content

Commit

Permalink
chore: remove unnecessary code for deleting old deployment (#2471)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tobiasdiez authored Jul 28, 2024
1 parent b8460fc commit 4e650ca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e650ca

Please sign in to comment.