ci: Created test GHA workflow to rest releasing Managarr to Chocolatey [skip ci]

This commit is contained in:
2024-12-19 16:10:38 -07:00
parent 93d3e6cec7
commit fc3a7ab789
4 changed files with 156 additions and 0 deletions
@@ -0,0 +1,20 @@
$ErrorActionPreference = 'Stop';
$PackageName = 'kdash'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url64 = 'https://github.com/Dark-Alex-17/managarr/releases/download/v$version/managarr-windows.tar.gz'
$checksum64 = '$hash_64'
$packageArgs = @{
packageName = $packageName
softwareName = $packageName
unzipLocation = $toolsDir
fileType = 'exe'
url = $url64
checksum = $checksum64
checksumType = 'sha256'
}
Install-ChocolateyZipPackage @packageArgs
$File = Get-ChildItem -File -Path $env:ChocolateyInstall\lib\$packageName\tools\ -Filter *.tar
Get-ChocolateyUnzip -fileFullPath $File.FullName -destination $env:ChocolateyInstall\lib\$packageName\tools\