Browse Source

Merge pull request #18506 from abpframework/zip-templates

Create Powershell scripts to zip templates for testing pre-rc
pull/18523/head
Engincan VESKE 3 years ago
committed by GitHub
parent
commit
d22c3de770
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      templates/zip-templates.ps1

13
templates/zip-templates.ps1

@ -0,0 +1,13 @@
$folders = Get-ChildItem -Directory
foreach ($folder in $folders) {
$zipFile = "./" + $folder.Name + ".zip"
if (Test-Path $zipFile) {
Remove-Item $zipFile
}
Compress-Archive -Path $folder.FullName -DestinationPath $zipFile
}
Write-Host "All templates have been zipped."
Loading…
Cancel
Save