From bdf10c1054b42eead1f9bf8c37114d270b60c66b Mon Sep 17 00:00:00 2001 From: Kevin Takla Date: Thu, 16 May 2024 14:02:49 -0400 Subject: [PATCH] ci: ensure nuget release is only executed from the main branch --- .azure-pipelines.yml | 6 +++++- CHANGELOG.md | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 2a4689ac9..7453f813b 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -23,6 +23,10 @@ trigger: - main variables: +#-if false +- name: IsReleaseBranch + value: $[eq(variables['Build.SourceBranch'], 'refs/heads/main')] +#-endif - template: build/variables.yml stages: @@ -49,7 +53,7 @@ stages: iosVariableGroup: 'ApplicationTemplate.Distribution.Internal.iOS' - stage: Publish_Template_Package - condition: and(succeeded(), eq(variables['IsLightBuild'], 'false')) + condition: and(succeeded(), eq(variables['IsLightBuild'], 'false'), eq(variables['IsReleaseBranch'], 'true')) dependsOn: - Build_Staging_GeneratedApp - Build_Staging diff --git a/CHANGELOG.md b/CHANGELOG.md index 5833bec31..2f751a069 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Prefix your items with `(Template)` if the change is about the template and not ## 3.5.X - Bump Uno packages to 5.2.121 to fix a crash on iOS. +- Ensure NV.Template.Mobile nuget is only deployed from the main branch. ## 3.4.X - Added a kill switch feature to the app.