diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 2a4689ac..7453f813 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 5833bec3..2f751a06 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.