From 8df14bc369be0228f5af44f302d436a5fc75e783 Mon Sep 17 00:00:00 2001 From: Shahovalov MIkhail Date: Tue, 7 Apr 2026 23:41:33 +0300 Subject: [PATCH] Inline Divine resolution in Gitea build step --- .gitea/workflows/build.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 3aedc0e..f1fd79c 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -65,7 +65,7 @@ jobs: Invoke-WebRequest -Uri $asset.browser_download_url -OutFile ".tools/lslib/lslib.zip" Expand-Archive -LiteralPath ".tools/lslib/lslib.zip" -DestinationPath ".tools/lslib" -Force - - name: Resolve Divine executable + - name: Build .pak run: | $ErrorActionPreference = "Stop" $divine = Get-ChildItem -Path ".tools/lslib" -Recurse -File | @@ -76,12 +76,7 @@ jobs: throw "Divine.exe was not found in the downloaded LSLib release." } - "DIVINE_PATH=$($divine.FullName)" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - - name: Build .pak - run: | - $ErrorActionPreference = "Stop" - & "$env:DIVINE_PATH" -a create-package -g bg3 -s Mods -d build/DnD55eRussian.pak + & $divine.FullName -a create-package -g bg3 -s Mods -d build/DnD55eRussian.pak if (-not (Test-Path -LiteralPath "build/DnD55eRussian.pak")) { throw "Package was not created."