diff --git a/.appveyor/prepareDeploy.ps1 b/.appveyor/prepareDeploy.ps1 index 99ee09e2..7dd3db3b 100644 --- a/.appveyor/prepareDeploy.ps1 +++ b/.appveyor/prepareDeploy.ps1 @@ -35,6 +35,12 @@ if(!$releaseId){ Return; } +if($result.assets.length <= 1){ + # The other build already recreated the release + Write-Host "The other build already recreated the release" + Return; +} + $deleteAssetParams = @{ Uri = "https://api.github.com/repos/Vocaluxe/Vocaluxe/releases/$releaseId"; Method = 'DELETE';