Fixed chocolatey pipeline

This commit is contained in:
Gerardo Grignoli 2023-07-08 21:12:22 -03:00
parent 889cc2f539
commit 6031c98e93

View File

@ -57,7 +57,7 @@ if (choco list -lo | Where-object { $_.StartsWith("gsudo") }) {
if($(choco apikey).Count -lt 2) { throw "Missing Chocolatey ApiKey. Use: choco apikey -k <your key here> -s https://push.chocolatey.org/" }
"`n- Uploading v$version to chocolatey"
choco push artifacts\Chocolatey\gsudo.$($version).nupkg || $(throw "Choco push failed.")
choco push artifacts\Chocolatey\gsudo.$($version).nupkg --source=https://push.chocolatey.org/ || $(throw "Choco push failed.")
"- Success"
popd