From ab7e58781f46a2e4a3648daca27620d6ccc40f23 Mon Sep 17 00:00:00 2001 From: Tian Liao Date: Mon, 29 Apr 2024 16:17:42 +0800 Subject: [PATCH] add publish control --- build/pipelines/azure-pipelines.release.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/build/pipelines/azure-pipelines.release.yaml b/build/pipelines/azure-pipelines.release.yaml index 4c8a3f11..db9c2ec4 100644 --- a/build/pipelines/azure-pipelines.release.yaml +++ b/build/pipelines/azure-pipelines.release.yaml @@ -15,6 +15,17 @@ variables: name: '$(versionMajor).$(versionMinor).$(versionBuild).$(versionPatch)' +parameters: +- name: publishStore + displayName: Publish and flight the package on Store + type: boolean + default: true + +- name: publishVPack + displayName: Publish VPack as undocked inbox app + type: boolean + default: true + resources: repositories: - repository: 1esPipelines @@ -83,5 +94,7 @@ extends: signBundle: true createStoreBrokerPackages: true - - template: /build/pipelines/templates/release-store.yaml@self - - template: /build/pipelines/templates/release-vpack.yaml@self + - ${{ if eq(parameters.publishStore, true) }}: + - template: /build/pipelines/templates/release-store.yaml@self + - ${{ if eq(parameters.publishVPack, true) }}: + - template: /build/pipelines/templates/release-vpack.yaml@self