Skip to content

Commit

Permalink
publish to feed only on scheduled builds (#2571)
Browse files Browse the repository at this point in the history
  • Loading branch information
kythant authored Jun 3, 2022
1 parent b9b0994 commit 2f93a45
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build/ProjectReunion-BuildFoundation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ parameters:
- name: "IgnoreFailures"
type: boolean
default: False
- name: "PublishToMaestro"
- name: "PublishPackage"
type: boolean
default: False
- name: "WindowsAppRuntimeInsightsSourceDirectory"
Expand Down Expand Up @@ -514,18 +514,18 @@ jobs:
itemPattern: |
**/*.nupkg
# this mysterious guid fixes the "NuGetCommand@2 is ambiguous" error :-(
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
displayName: 'NuGet push to ProjectReunion.nuget.internal'
inputs:
command: 'push'
packagesToPush: '$(Build.SourcesDirectory)/FullNuget/*.nupkg;!$(Build.SourcesDirectory)/FullNuget/*.symbols.nupkg'
verbosityPush: 'Detailed'
nuGetFeedType: 'internal'
#Note: The project qualifier is always required when using a feed name. Also, do not use organization scoped feeds.
publishVstsFeed: 'ProjectReunion/Project.Reunion.nuget.internal'

- ${{ if or(eq(variables['Build.Reason'], 'Schedule'), eq(parameters.publishToMaestro, 'true')) }}:
- ${{ if or(eq(variables['Build.Reason'], 'Schedule'), eq(parameters.PublishPackage, 'true')) }}:
# this mysterious guid fixes the "NuGetCommand@2 is ambiguous" error :-(
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
displayName: 'NuGet push to ProjectReunion.nuget.internal'
inputs:
command: 'push'
packagesToPush: '$(Build.SourcesDirectory)/FullNuget/*.nupkg;!$(Build.SourcesDirectory)/FullNuget/*.symbols.nupkg'
verbosityPush: 'Detailed'
nuGetFeedType: 'internal'
#Note: The project qualifier is always required when using a feed name. Also, do not use organization scoped feeds.
publishVstsFeed: 'ProjectReunion/Project.Reunion.nuget.internal'

- template: ..\eng\common\AzurePipelinesTemplates\Maestro-PublishBuildToMaestro-Steps.yml
parameters:
AssetNames: 'Microsoft.WindowsAppSDK.Foundation.TransportPackage'
Expand Down

0 comments on commit 2f93a45

Please sign in to comment.