From 37b14d83a60f24ac64063437815848aa6c1af420 Mon Sep 17 00:00:00 2001 From: Anthony Dresser Date: Tue, 14 Apr 2020 13:14:55 -0700 Subject: [PATCH] Release rc (#9971) * release rc builds * allow ref heads --- build/azure-pipelines/common/publish.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/azure-pipelines/common/publish.ts b/build/azure-pipelines/common/publish.ts index 619f45e077..86f1340f25 100644 --- a/build/azure-pipelines/common/publish.ts +++ b/build/azure-pipelines/common/publish.ts @@ -217,7 +217,13 @@ async function publish(commit: string, quality: string, platform: string, type: // {{SQL CARBON EDIT}} // Insiders: nightly build from master - const isReleased = (quality === 'insider' && /^master$|^refs\/heads\/master$/.test(sourceBranch) && /Project Collection Service Accounts|Microsoft.VisualStudio.Services.TFS/.test(queuedBy)); + const isReleased = ( + ( + (quality === 'insider' && /^master$|^refs\/heads\/master$/.test(sourceBranch)) || + (quality === 'rc1' && /^release\/|^refs\/heads\/release\//.test(sourceBranch)) + ) && + /Project Collection Service Accounts|Microsoft.VisualStudio.Services.TFS/.test(queuedBy) + ); const release = { id: commit,