Package build output as release zip
All checks were successful
Build Mod Package / build (push) Successful in 12s
All checks were successful
Build Mod Package / build (push) Successful in 12s
This commit is contained in:
@@ -71,6 +71,7 @@ jobs:
|
|||||||
$workspace = "${{ gitea.workspace }}"
|
$workspace = "${{ gitea.workspace }}"
|
||||||
$modsPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "Mods"))
|
$modsPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "Mods"))
|
||||||
$packagePath = [System.IO.Path]::GetFullPath((Join-Path $workspace "build/DnD55eRussian.pak"))
|
$packagePath = [System.IO.Path]::GetFullPath((Join-Path $workspace "build/DnD55eRussian.pak"))
|
||||||
|
$zipPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "build/DnD 5.5e AIO Russian.zip"))
|
||||||
$divine = Get-ChildItem -Path ".tools/lslib" -Recurse -File |
|
$divine = Get-ChildItem -Path ".tools/lslib" -Recurse -File |
|
||||||
Where-Object { $_.Name -ieq "Divine.exe" } |
|
Where-Object { $_.Name -ieq "Divine.exe" } |
|
||||||
Select-Object -First 1
|
Select-Object -First 1
|
||||||
@@ -85,7 +86,18 @@ jobs:
|
|||||||
throw "Package was not created."
|
throw "Package was not created."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Test-Path -LiteralPath $zipPath) {
|
||||||
|
Remove-Item -LiteralPath $zipPath -Force
|
||||||
|
}
|
||||||
|
|
||||||
|
Compress-Archive -LiteralPath $packagePath -DestinationPath $zipPath -CompressionLevel Optimal
|
||||||
|
|
||||||
|
if (-not (Test-Path -LiteralPath $zipPath)) {
|
||||||
|
throw "ZIP archive was not created."
|
||||||
|
}
|
||||||
|
|
||||||
- name: Show build result
|
- name: Show build result
|
||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
Get-ChildItem "build/DnD55eRussian.pak" | Select-Object FullName, Length, LastWriteTime
|
Get-ChildItem "build/DnD55eRussian.pak", "build/DnD 5.5e AIO Russian.zip" |
|
||||||
|
Select-Object FullName, Length, LastWriteTime
|
||||||
|
|||||||
Reference in New Issue
Block a user