Skip to content

Commit

Permalink
Fix publishing of Windows release (pythonGH-15006)
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba authored Jul 29, 2019
1 parent 44212ec commit fe330fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ jobs:
condition: and(succeeded(), eq(variables['SigningCertificate'], variables['__RealSigningCertificate']))
inputs:
command: push
packagesToPush: $(Build.BinariesDirectory)\nuget\*.nupkg'
packagesToPush: '$(Build.BinariesDirectory)\nuget\*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'Python on Nuget'
4 changes: 4 additions & 0 deletions Tools/msi/uploadrelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ if (-not $skipupload) {
& $plink -batch $user@$server chgrp downloads $d
& $plink -batch $user@$server chmod g-x,o+rx $d
& $pscp -batch $chm.FullName "$user@${server}:$d"
if (-not $?) { throw "Failed to upload $chm" }

$dirs = gci "$build" -Directory
if ($embed) {
Expand All @@ -107,6 +108,7 @@ if (-not $skipupload) {

if ($exe) {
& $pscp -batch $exe.FullName "$user@${server}:$d"
if (-not $?) { throw "Failed to upload $exe" }
}

if ($msi) {
Expand All @@ -115,13 +117,15 @@ if (-not $skipupload) {
& $plink -batch $user@$server chgrp downloads $sd
& $plink -batch $user@$server chmod g-x,o+rx $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 chmod g-x,o+r $sd*
}
}

& $plink -batch $user@$server chgrp downloads $d*
& $plink -batch $user@$server chmod g-x,o+r $d*
& $pscp -ls "$user@${server}:$d"
}

if (-not $skippurge) {
Expand Down

0 comments on commit fe330fc

Please sign in to comment.