From 039d4d11aae67a509ac162bcb103b102ad9987fa Mon Sep 17 00:00:00 2001 From: David Sparer Date: Wed, 22 Mar 2017 16:33:12 -0600 Subject: [PATCH] add a cast to help aleviate bat file issues --- Tools/publish_to_github.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/publish_to_github.ps1 b/Tools/publish_to_github.ps1 index 17c2d0ff7..cc54719fc 100644 --- a/Tools/publish_to_github.ps1 +++ b/Tools/publish_to_github.ps1 @@ -155,7 +155,7 @@ function Upload-ReleaseAsset { -$release = Publish-Release -Owner $Owner -Repository $Repository -ReleaseTitle $ReleaseTitle -TagName $TagName -TargetCommitish $TargetCommitish -Description $Description -IsDraft $IsDraft -IsPrerelease $IsPrerelease -AuthToken $AuthToken +$release = Publish-Release -Owner $Owner -Repository $Repository -ReleaseTitle $ReleaseTitle -TagName $TagName -TargetCommitish $TargetCommitish -Description $Description -IsDraft ([bool]::Parse($IsDraft)) -IsPrerelease ([bool]::Parse($IsPrerelease)) -AuthToken $AuthToken $zipUpload = Upload-ReleaseAsset -UploadUri $release.upload_url -FilePath $ZipFilePath -ContentType "application/zip" -AuthToken $AuthToken $msiUpload = Upload-ReleaseAsset -UploadUri $release.upload_url -FilePath $MsiFilePath -ContentType "binary/octetstream" -AuthToken $AuthToken Write-Output $release \ No newline at end of file