Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 8a8e748

Browse files
authored
Merge pull request #4 from PowerShell/clean-releasebuild
overwrite existing zip if exists
2 parents a37ed00 + 2e98944 commit 8a8e748

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yaml/releaseBuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ stages:
9494
useMinimatch: false
9595

9696
- pwsh: |
97-
New-Item -Path $(Build.SourcesDirectory)/SignedZip -ItemType Directory
98-
Compress-Archive -Path $(Build.SourcesDirectory)/Microsoft.PowerShell.TextUtility -DestinationPath $(Build.SourcesDirectory)/SignedZip/Microsoft.PowerShell.TextUtility.zip
97+
New-Item -Path $(Build.SourcesDirectory)/SignedZip -ItemType Directory -ErrorAction Ignore
98+
Compress-Archive -Path $(Build.SourcesDirectory)/Microsoft.PowerShell.TextUtility -DestinationPath $(Build.SourcesDirectory)/SignedZip/Microsoft.PowerShell.TextUtility.zip -Force
9999
displayName: 'Compress archive'
100100
condition: succeededOrFailed()
101101

0 commit comments

Comments
 (0)