diff --git a/scripts/upload-release-assets.ps1 b/scripts/upload-release-assets.ps1 index 897ed1a..c3f2595 100644 --- a/scripts/upload-release-assets.ps1 +++ b/scripts/upload-release-assets.ps1 @@ -30,6 +30,10 @@ param( $ErrorActionPreference = 'Stop' +# Windows PowerShell 5.1 can default to older TLS settings and fail against +# modern HTTPS endpoints before curl.exe gets a chance to upload assets. +[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 + $repoOwner = 'AnRil' $repoName = 'laude' $giteaHost = 'git.xn--90adajar8af4h.xn--p1ai'