From 147d31522e31a1fd2085c6eff38c7ee527295b76 Mon Sep 17 00:00:00 2001 From: Shahovalov MIkhail Date: Tue, 7 Apr 2026 23:53:59 +0300 Subject: [PATCH] Package build output as release zip --- .gitea/workflows/build.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1d6018a..0483486 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -71,6 +71,7 @@ jobs: $workspace = "${{ gitea.workspace }}" $modsPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "Mods")) $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 | Where-Object { $_.Name -ieq "Divine.exe" } | Select-Object -First 1 @@ -85,7 +86,18 @@ jobs: 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 run: | $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