11name : Release_$(Build.SourceBranchName)_$(SourceTag)_$(Date:yyyyMMdd)$(Rev:.rr)
22
3+ variables :
4+ __RealSigningCertificate : ' Python Software Foundation'
35# QUEUE TIME VARIABLES
4- # variables:
56# GitRemote: python
67# SourceTag:
78# DoPGO: true
@@ -13,84 +14,116 @@ name: Release_$(Build.SourceBranchName)_$(SourceTag)_$(Date:yyyyMMdd)$(Rev:.rr)
1314# DoEmbed: true
1415# DoMSI: true
1516# DoPublish: false
17+ # PyDotOrgUsername: ''
18+ # PyDotOrgServer: ''
19+ # BuildToPublish: ''
1620
1721trigger : none
1822pr : none
1923
2024stages :
2125- stage : Build
2226 displayName : Build binaries
27+ condition : and(succeeded(), not(variables['BuildToPublish']))
2328 jobs :
2429 - template : windows-release/stage-build.yml
2530
2631- stage : Sign
2732 displayName : Sign binaries
2833 dependsOn : Build
34+ condition : and(succeeded(), not(variables['BuildToPublish']))
2935 jobs :
3036 - template : windows-release/stage-sign.yml
3137
3238- stage : Layout
3339 displayName : Generate layouts
3440 dependsOn : Sign
41+ condition : and(succeeded(), not(variables['BuildToPublish']))
3542 jobs :
3643 - template : windows-release/stage-layout-full.yml
3744 - template : windows-release/stage-layout-embed.yml
3845 - template : windows-release/stage-layout-nuget.yml
3946
4047- stage : Pack
4148 dependsOn : Layout
49+ condition : and(succeeded(), not(variables['BuildToPublish']))
4250 jobs :
4351 - template : windows-release/stage-pack-nuget.yml
4452
4553- stage : Test
4654 dependsOn : Pack
55+ condition : and(succeeded(), not(variables['BuildToPublish']))
4756 jobs :
4857 - template : windows-release/stage-test-embed.yml
4958 - template : windows-release/stage-test-nuget.yml
5059
5160- stage : Layout_MSIX
5261 displayName : Generate MSIX layouts
5362 dependsOn : Sign
54- condition : and(succeeded(), eq(variables['DoMSIX'], 'true'))
63+ condition : and(succeeded(), and( eq(variables['DoMSIX'], 'true'), not(variables['BuildToPublish']) ))
5564 jobs :
5665 - template : windows-release/stage-layout-msix.yml
5766
5867- stage : Pack_MSIX
5968 displayName : Package MSIX
6069 dependsOn : Layout_MSIX
70+ condition : and(succeeded(), not(variables['BuildToPublish']))
6171 jobs :
6272 - template : windows-release/stage-pack-msix.yml
6373
6474- stage : Build_MSI
6575 displayName : Build MSI installer
6676 dependsOn : Sign
67- condition : and(succeeded(), eq(variables['DoMSI'], 'true'))
77+ condition : and(succeeded(), and( eq(variables['DoMSI'], 'true'), not(variables['BuildToPublish']) ))
6878 jobs :
6979 - template : windows-release/stage-msi.yml
7080
7181- stage : Test_MSI
7282 displayName : Test MSI installer
7383 dependsOn : Build_MSI
84+ condition : and(succeeded(), not(variables['BuildToPublish']))
7485 jobs :
7586 - template : windows-release/stage-test-msi.yml
7687
7788- stage : PublishPyDotOrg
7889 displayName : Publish to python.org
7990 dependsOn : ['Test_MSI', 'Test']
80- condition : and(succeeded(), eq(variables['DoPublish'], 'true'))
91+ condition : and(succeeded(), and( eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish']) ))
8192 jobs :
8293 - template : windows-release/stage-publish-pythonorg.yml
8394
8495- stage : PublishNuget
8596 displayName : Publish to nuget.org
8697 dependsOn : Test
87- condition : and(succeeded(), eq(variables['DoPublish'], 'true'))
98+ condition : and(succeeded(), and( eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish']) ))
8899 jobs :
89100 - template : windows-release/stage-publish-nugetorg.yml
90101
91102- stage : PublishStore
92103 displayName : Publish to Store
93104 dependsOn : Pack_MSIX
94- condition : and(succeeded(), eq(variables['DoPublish'], 'true'))
105+ condition : and(succeeded(), and(eq(variables['DoPublish'], 'true'), not(variables['BuildToPublish'])))
106+ jobs :
107+ - template : windows-release/stage-publish-store.yml
108+
109+
110+ - stage : PublishExistingPyDotOrg
111+ displayName : Publish existing build to python.org
112+ dependsOn : []
113+ condition : and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish']))
114+ jobs :
115+ - template : windows-release/stage-publish-pythonorg.yml
116+
117+ - stage : PublishExistingNuget
118+ displayName : Publish existing build to nuget.org
119+ dependsOn : []
120+ condition : and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish']))
121+ jobs :
122+ - template : windows-release/stage-publish-nugetorg.yml
123+
124+ - stage : PublishExistingStore
125+ displayName : Publish existing build to Store
126+ dependsOn : []
127+ condition : and(succeeded(), and(eq(variables['DoPublish'], 'true'), variables['BuildToPublish']))
95128 jobs :
96129 - template : windows-release/stage-publish-store.yml
0 commit comments