Make the release pipeline logic to push to the store optional (and disabled by default) (#41045)
* Make the release pipeline logic to push to the store optional (and disabled by default) * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Blue committed
Jul 10, 2026 at 11:03 UTC
b86eb5c70177eae101d152c39c159df2f503076d
2 files changed
+11
-1
.pipelines/flight-stage.yml
+5
-1
@@ -11,6 +11,10 @@ parameters:
11
type: boolean
12
default: false
13
14
+- name: pushToStore
15
+ type: boolean
16
+ default: false
17
+
18
stages:
19
- stage: flight
20
${{ if eq(parameters.bypassTests, true) }}:
@@ -89,7 +93,7 @@ stages:
93
# submit the package flight to the WSL SelfHost Flight Group
94
- task: MS-RDX-MRO.windows-store-publish.flight-task.store-flight@3
95
displayName: 'Flight StoreBroker Package to Partner Center - WSL SelfHost Flight Group'
92
- condition: and(succeeded(), eq('${{ parameters.publishPackage }}', true))
96
+ condition: and(succeeded(), eq('${{ parameters.publishPackage }}', true), eq('${{ parameters.pushToStore }}', true))
97
inputs:
98
serviceEndpoint: 'AzureConnection-StoreBroker-WIF'
99
appId: $(AppId)
.pipelines/wsl-build-release-onebranch.yml
+6
@@ -4,6 +4,11 @@ parameters:
4
type: boolean
5
default: false
6
7
+- name: pushToStore
8
+ displayName: 'Push the release to the Microsoft Store'
9
+ type: boolean
10
+ default: false
11
+
12
- name: testVersion
13
displayName: 'Test the release pipeline'
14
type: string
@@ -74,6 +79,7 @@ extends:
79
publishPackage: ${{ iif(eq(parameters.testVersion, ''), true, false) }}
80
packageVersion: ${{ iif(eq(parameters.testVersion, ''), variables['Build.SourceBranchName'], parameters.testVersion) }}
81
bypassTests: ${{ parameters.bypassTests }}
82
+ pushToStore: ${{ parameters.pushToStore }}
83
84
- ${{ if or(eq(parameters.testVersion, ''), not(eq(parameters.nugetSuffix, ''))) }}:
85
- template: nuget-stage.yml@self