summaryrefslogtreecommitdiffstats
path: root/.azure-pipelines/windows-release
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2022-03-16 15:23:35 (GMT)
committerGitHub <noreply@github.com>2022-03-16 15:23:35 (GMT)
commitd56a237e160b8e38fc9bd29c6be272b9d92eb67a (patch)
treeb3ef62a6130f6109ae7b989e9c9bad704ac7ce46 /.azure-pipelines/windows-release
parente707ceb6e464b24ddc9fdbdac7bfe15f7eeb43fd (diff)
downloadcpython-d56a237e160b8e38fc9bd29c6be272b9d92eb67a.zip
cpython-d56a237e160b8e38fc9bd29c6be272b9d92eb67a.tar.gz
cpython-d56a237e160b8e38fc9bd29c6be272b9d92eb67a.tar.bz2
Fix some Windows release build script issues (GH-31931)
* Fix the condition used when excluding ARM64 packages from publish * Do not publish anything unless the traditional installer works * Fix disabling of MSI build * Add override conditions for publish steps * Allow overriding the Nuget version number during build
Diffstat (limited to '.azure-pipelines/windows-release')
-rw-r--r--.azure-pipelines/windows-release/stage-pack-nuget.yml19
-rw-r--r--.azure-pipelines/windows-release/stage-publish-nugetorg.yml4
-rw-r--r--.azure-pipelines/windows-release/stage-publish-pythonorg.yml4
-rw-r--r--.azure-pipelines/windows-release/stage-publish-store.yml2
4 files changed, 22 insertions, 7 deletions
diff --git a/.azure-pipelines/windows-release/stage-pack-nuget.yml b/.azure-pipelines/windows-release/stage-pack-nuget.yml
index 8dfea38..85b44e3 100644
--- a/.azure-pipelines/windows-release/stage-pack-nuget.yml
+++ b/.azure-pipelines/windows-release/stage-pack-nuget.yml
@@ -32,8 +32,23 @@ jobs:
inputs:
versionSpec: '>=5.0'
- - powershell: |
- nuget pack "$(Build.BinariesDirectory)\layout\python.nuspec" -OutputDirectory $(Build.ArtifactStagingDirectory) -NoPackageAnalysis -NonInteractive
+ - powershell: >
+ nuget pack
+ "$(Build.BinariesDirectory)\layout\python.nuspec"
+ -OutputDirectory $(Build.ArtifactStagingDirectory)
+ -NoPackageAnalysis
+ -NonInteractive
+ condition: and(succeeded(), not(variables['OverrideNugetVersion']))
+ displayName: 'Create nuget package'
+
+ - powershell: >
+ nuget pack
+ "$(Build.BinariesDirectory)\layout\python.nuspec"
+ -OutputDirectory $(Build.ArtifactStagingDirectory)
+ -NoPackageAnalysis
+ -NonInteractive
+ -Version "$(OverrideNugetVersion)"
+ condition: and(succeeded(), variables['OverrideNugetVersion'])
displayName: 'Create nuget package'
- powershell: |
diff --git a/.azure-pipelines/windows-release/stage-publish-nugetorg.yml b/.azure-pipelines/windows-release/stage-publish-nugetorg.yml
index a8855f0..abb9d0f 100644
--- a/.azure-pipelines/windows-release/stage-publish-nugetorg.yml
+++ b/.azure-pipelines/windows-release/stage-publish-nugetorg.yml
@@ -4,7 +4,7 @@ parameters:
jobs:
- job: Publish_Nuget
displayName: Publish Nuget packages
- condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
+ condition: and(succeeded(), eq(variables['DoNuget'], 'true'), ne(variables['SkipNugetPublish'], 'true'))
pool:
vmImage: windows-2022
@@ -38,7 +38,7 @@ jobs:
- powershell: 'gci pythonarm*.nupkg | %{ Write-Host "Not publishing: $($_.Name)"; gi $_ } | del'
displayName: 'Prevent publishing ARM64 packages'
workingDirectory: '$(Build.BinariesDirectory)\nuget'
- condition: and(succeeded(), eq(variables['PublishARM64'], 'true'))
+ condition: and(succeeded(), ne(variables['PublishARM64'], 'true'))
- task: NuGetCommand@2
displayName: Push packages
diff --git a/.azure-pipelines/windows-release/stage-publish-pythonorg.yml b/.azure-pipelines/windows-release/stage-publish-pythonorg.yml
index be4ef9e..953f728 100644
--- a/.azure-pipelines/windows-release/stage-publish-pythonorg.yml
+++ b/.azure-pipelines/windows-release/stage-publish-pythonorg.yml
@@ -4,7 +4,7 @@ parameters:
jobs:
- job: Publish_Python
displayName: Publish python.org packages
- condition: and(succeeded(), and(eq(variables['DoMSI'], 'true'), eq(variables['DoEmbed'], 'true')))
+ condition: and(succeeded(), eq(variables['DoMSI'], 'true'), eq(variables['DoEmbed'], 'true'), ne(variables['SkipPythonOrgPublish'], 'true'))
pool:
#vmImage: windows-2022
@@ -81,7 +81,7 @@ jobs:
- powershell: 'gci *embed-arm*.zip | %{ Write-Host "Not publishing: $($_.Name)"; gi $_ } | del'
displayName: 'Prevent publishing ARM64 packages'
workingDirectory: '$(Build.BinariesDirectory)\embed'
- condition: and(succeeded(), eq(variables['PublishARM64'], 'true'))
+ condition: and(succeeded(), ne(variables['PublishARM64'], 'true'))
- template: ./gpg-sign.yml
diff --git a/.azure-pipelines/windows-release/stage-publish-store.yml b/.azure-pipelines/windows-release/stage-publish-store.yml
index f3d4c80..0eae21e 100644
--- a/.azure-pipelines/windows-release/stage-publish-store.yml
+++ b/.azure-pipelines/windows-release/stage-publish-store.yml
@@ -4,7 +4,7 @@ parameters:
jobs:
- job: Publish_Store
displayName: Publish Store packages
- condition: and(succeeded(), eq(variables['DoMSIX'], 'true'))
+ condition: and(succeeded(), eq(variables['DoMSIX'], 'true'), ne(variables['SkipMSIXPublish'], 'true'))
pool:
vmImage: windows-2022