Skip to content

Commit

Permalink
Make sure TLS 1.2 is supported for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths committed Mar 8, 2018
1 parent 5c43903 commit fb8332b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/Publish-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ $headers = @{
Accept = 'application/vnd.github.v3+json'
}

# Make sure TLS 1.2 is supported now that GitHub requires it.
[System.Net.ServicePointManager]::SecurityProtocol += 'Tls12'

$release = Invoke-RestMethod -Uri $uri -Method Post -Body $request -Headers $headers
$upload_url = $release.upload_url -replace '\{\?.*$', ''

Expand Down

0 comments on commit fb8332b

Please sign in to comment.