Skip to content

Commit fe330fc

Browse files
authored
Fix publishing of Windows release (GH-15006)
1 parent 44212ec commit fe330fc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.azure-pipelines/windows-release/stage-publish-nugetorg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ jobs:
3636
condition: and(succeeded(), eq(variables['SigningCertificate'], variables['__RealSigningCertificate']))
3737
inputs:
3838
command: push
39-
packagesToPush: $(Build.BinariesDirectory)\nuget\*.nupkg'
39+
packagesToPush: '$(Build.BinariesDirectory)\nuget\*.nupkg'
4040
nuGetFeedType: external
4141
publishFeedCredentials: 'Python on Nuget'

Tools/msi/uploadrelease.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ if (-not $skipupload) {
9292
& $plink -batch $user@$server chgrp downloads $d
9393
& $plink -batch $user@$server chmod g-x,o+rx $d
9494
& $pscp -batch $chm.FullName "$user@${server}:$d"
95+
if (-not $?) { throw "Failed to upload $chm" }
9596

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

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

112114
if ($msi) {
@@ -115,13 +117,15 @@ if (-not $skipupload) {
115117
& $plink -batch $user@$server chgrp downloads $sd
116118
& $plink -batch $user@$server chmod g-x,o+rx $sd
117119
& $pscp -batch $msi.FullName "$user@${server}:$sd"
120+
if (-not $?) { throw "Failed to upload $msi" }
118121
& $plink -batch $user@$server chgrp downloads $sd*
119122
& $plink -batch $user@$server chmod g-x,o+r $sd*
120123
}
121124
}
122125

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

127131
if (-not $skippurge) {

0 commit comments

Comments
 (0)