ci: Attempting to fix path errors in chocolatey install

This commit is contained in:
2025-09-14 20:00:03 -06:00
parent 21127f3ec3
commit 4c30bc7e7d
5 changed files with 6 additions and 39 deletions
+3 -2
View File
@@ -406,8 +406,9 @@ jobs:
# Publish to Chocolatey
cd ./deployment/chocolatey
choco pack
echo y | choco install gman -dv -s .
$version = gman.exe --version
choco install gman --yes -dv -s .
$exe = Get-ChildItem "$env:ChocolateyInstall\lib\gman\tools\gman*.exe" -ErrorAction Stop | Select-Object -First 1 -Expand FullName
$version = & $exe --version
$version = $version -replace " ", "."
choco push $version.nupkg -s https://push.chocolatey.org/ --api-key ${{ secrets.CHOCOLATEY_API_KEY }};