Fix publishing of Windows release (GH-15006)

This commit is contained in:
Steve Dower 2019-07-29 11:22:27 -07:00 committed by GitHub
parent 44212ec811
commit fe330fc4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -36,6 +36,6 @@ jobs:
condition: and(succeeded(), eq(variables['SigningCertificate'], variables['__RealSigningCertificate'])) condition: and(succeeded(), eq(variables['SigningCertificate'], variables['__RealSigningCertificate']))
inputs: inputs:
command: push command: push
packagesToPush: $(Build.BinariesDirectory)\nuget\*.nupkg' packagesToPush: '$(Build.BinariesDirectory)\nuget\*.nupkg'
nuGetFeedType: external nuGetFeedType: external
publishFeedCredentials: 'Python on Nuget' publishFeedCredentials: 'Python on Nuget'

View File

@ -92,6 +92,7 @@ if (-not $skipupload) {
& $plink -batch $user@$server chgrp downloads $d & $plink -batch $user@$server chgrp downloads $d
& $plink -batch $user@$server chmod g-x,o+rx $d & $plink -batch $user@$server chmod g-x,o+rx $d
& $pscp -batch $chm.FullName "$user@${server}:$d" & $pscp -batch $chm.FullName "$user@${server}:$d"
if (-not $?) { throw "Failed to upload $chm" }
$dirs = gci "$build" -Directory $dirs = gci "$build" -Directory
if ($embed) { if ($embed) {
@ -107,6 +108,7 @@ if (-not $skipupload) {
if ($exe) { if ($exe) {
& $pscp -batch $exe.FullName "$user@${server}:$d" & $pscp -batch $exe.FullName "$user@${server}:$d"
if (-not $?) { throw "Failed to upload $exe" }
} }
if ($msi) { if ($msi) {
@ -115,6 +117,7 @@ if (-not $skipupload) {
& $plink -batch $user@$server chgrp downloads $sd & $plink -batch $user@$server chgrp downloads $sd
& $plink -batch $user@$server chmod g-x,o+rx $sd & $plink -batch $user@$server chmod g-x,o+rx $sd
& $pscp -batch $msi.FullName "$user@${server}:$sd" & $pscp -batch $msi.FullName "$user@${server}:$sd"
if (-not $?) { throw "Failed to upload $msi" }
& $plink -batch $user@$server chgrp downloads $sd* & $plink -batch $user@$server chgrp downloads $sd*
& $plink -batch $user@$server chmod g-x,o+r $sd* & $plink -batch $user@$server chmod g-x,o+r $sd*
} }
@ -122,6 +125,7 @@ if (-not $skipupload) {
& $plink -batch $user@$server chgrp downloads $d* & $plink -batch $user@$server chgrp downloads $d*
& $plink -batch $user@$server chmod g-x,o+r $d* & $plink -batch $user@$server chmod g-x,o+r $d*
& $pscp -ls "$user@${server}:$d"
} }
if (-not $skippurge) { if (-not $skippurge) {