Skip to content

Commit 481b8e5

Browse files
authored
Fixes for publish stages of the Windows release (#244)
1 parent 734bb4b commit 481b8e5

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

windows-release/azure-pipelines.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,17 @@ parameters:
7878
type: boolean
7979
default: true
8080
- name: DoEmbed
81-
displayName: "Produce embeddable package"
81+
displayName: "Produce embeddable package (w/ PyManager or MSI options)"
8282
type: boolean
8383
default: true
8484
- name: DoMSI
8585
displayName: "Produce EXE/MSI installer"
8686
type: boolean
8787
default: true
88+
- name: TestMSI
89+
displayName: "Run EXE/MSI installer tests"
90+
type: boolean
91+
default: true
8892
- name: DoPyManager
8993
displayName: "Produce PyManager package"
9094
type: boolean
@@ -224,6 +228,7 @@ stages:
224228
BuildToPackage: ${{ parameters.BuildToPackage }}
225229
DoARM64: ${{ parameters.DoARM64}}
226230
DoFreethreaded: ${{ parameters.DoFreethreaded }}
231+
SigningCertificate: ${{ parameters.SigningCertificate }}
227232
- ${{ if eq(parameters.DoMSIX, 'true') }}:
228233
- template: stage-pack-msix.yml
229234
parameters:
@@ -247,7 +252,7 @@ stages:
247252
jobs:
248253
- ${{ if eq(parameters.DoEmbed, 'true') }}:
249254
- template: stage-test-embed.yml
250-
- ${{ if eq(parameters.DoMSI, 'true') }}:
255+
- ${{ if and(eq(parameters.DoMSI, 'true'), eq(parameters.TestMSI, 'true')) }}:
251256
- template: stage-test-msi.yml
252257
parameters:
253258
DoFreethreaded: ${{ parameters.DoFreethreaded }}

windows-release/msi-steps.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ steps:
8585
AZURE_TENANT_ID: $(TrustedSigningTenantId)
8686
AZURE_CLIENT_ID: $(TrustedSigningClientId)
8787
AZURE_CLIENT_SECRET: $(TrustedSigningSecret)
88+
# Only need the variable here for msi.props to detect
89+
SigningCertificate: ${{ parameters.SigningCertificate }}
8890
8991
- ${{ each b in parameters.Bundles }}:
9092
- script: |
@@ -101,6 +103,8 @@ steps:
101103
AZURE_TENANT_ID: $(TrustedSigningTenantId)
102104
AZURE_CLIENT_ID: $(TrustedSigningClientId)
103105
AZURE_CLIENT_SECRET: $(TrustedSigningSecret)
106+
# Only need the variable here for msi.props to detect
107+
SigningCertificate: ${{ parameters.SigningCertificate }}
104108
105109
- powershell: |
106110
del $env:ResponseFile -ErrorAction Continue

windows-release/stage-layout-embed.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ parameters:
44
jobs:
55
- job: Make_Embed_Layout
66
displayName: Make embeddable layout
7-
condition: and(succeeded(), eq(variables['DoEmbed'], 'true'))
87

98
pool:
109
vmImage: windows-2022

windows-release/stage-publish-pythonorg.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,6 @@ jobs:
2424
inputs:
2525
versionSpec: '>=3.10'
2626

27-
- task: DownloadPipelineArtifact@2
28-
displayName: 'Download artifact: Doc'
29-
inputs:
30-
${{ if eq(parameters.BuildToPublish, 'current') }}:
31-
buildType: current
32-
${{ else }}:
33-
buildType: specific
34-
buildVersionToDownload: specific
35-
project: $(resources.pipeline.build_to_publish.projectId)
36-
pipeline: $(resources.pipeline.build_to_publish.pipelineId)
37-
runId: $(resources.pipeline.build_to_publish.runID)
38-
artifact: Doc
39-
targetPath: $(Pipeline.Workspace)\Doc
40-
4127
- task: DownloadPipelineArtifact@2
4228
displayName: 'Download artifact: msi'
4329
inputs:
@@ -63,8 +49,9 @@ jobs:
6349
buildVersionToDownload: specific
6450
project: $(resources.pipeline.build_to_publish.projectId)
6551
pipeline: $(resources.pipeline.build_to_publish.pipelineId)
66-
runId: $(resources.pipeline.build_to_publish.runID)
52+
buildId: $(resources.pipeline.build_to_publish.runID)
6753
artifactName: embed
54+
# Artifact name is added to path for DownloadBuildArtifacts
6855
downloadPath: $(Pipeline.Workspace)
6956

7057
- task: DownloadBuildArtifacts@1
@@ -77,8 +64,9 @@ jobs:
7764
buildVersionToDownload: specific
7865
project: $(resources.pipeline.build_to_publish.projectId)
7966
pipeline: $(resources.pipeline.build_to_publish.pipelineId)
80-
runId: $(resources.pipeline.build_to_publish.runID)
67+
buildId: $(resources.pipeline.build_to_publish.runID)
8168
artifactName: sbom
69+
# Artifact name is added to path for DownloadBuildArtifacts
8270
downloadPath: $(Pipeline.Workspace)
8371

8472

0 commit comments

Comments
 (0)