Skip to content

Commit

Permalink
Merge pull request #18506 from abpframework/zip-templates
Browse files Browse the repository at this point in the history
Create Powershell scripts to zip templates for testing pre-rc
  • Loading branch information
EngincanV authored Dec 19, 2023
2 parents c0980aa + 0f8220b commit d22c3de
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/zip-templates.ps1
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit d22c3de

Please sign in to comment.