From d29022f8bfa4a6d2970f7a7ce6d375bd40adcea5 Mon Sep 17 00:00:00 2001 From: Shahovalov MIkhail Date: Tue, 7 Apr 2026 23:44:10 +0300 Subject: [PATCH] Use absolute paths for Divine package build --- .gitea/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f1fd79c..1d6018a 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -68,6 +68,9 @@ jobs: - name: Build .pak run: | $ErrorActionPreference = "Stop" + $workspace = "${{ gitea.workspace }}" + $modsPath = [System.IO.Path]::GetFullPath((Join-Path $workspace "Mods")) + $packagePath = [System.IO.Path]::GetFullPath((Join-Path $workspace "build/DnD55eRussian.pak")) $divine = Get-ChildItem -Path ".tools/lslib" -Recurse -File | Where-Object { $_.Name -ieq "Divine.exe" } | Select-Object -First 1 @@ -76,7 +79,7 @@ jobs: throw "Divine.exe was not found in the downloaded LSLib release." } - & $divine.FullName -a create-package -g bg3 -s Mods -d build/DnD55eRussian.pak + & $divine.FullName -a create-package -g bg3 -s $modsPath -d $packagePath if (-not (Test-Path -LiteralPath "build/DnD55eRussian.pak")) { throw "Package was not created."