trigger:
  branches:
    include:
    - main
    - develop
    - rel/*
  paths:
    exclude:
    - '**/*.md'
    - '**/*.yml'

pr:
  branches:
    include:
    - main
    - develop
    - rel/*
  paths:
    exclude:
    - '**/*.md'
    - '**/*.yml'

pool:
  vmImage: windows-2019

variables: 
  BuildConfiguration: Release
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

steps:
- powershell: |
    dotnet tool install --tool-path . --version 0.35.0 Cake.Tool
    ./dotnet-cake

- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: 'artifacts/'
    ArtifactName: 'drop'
    publishLocation: 'Container'

- task: NuGetCommand@2
  condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
  inputs:
    command: 'push'
    packagesToPush: 'artifacts/**/*.nupkg'
    nuGetFeedType: 'external'
    publishFeedCredentials: 'NuGet.org MvxPlugins'

trigger:
  branches:
    include:
    - main
    - develop
    - rel/*
  paths:
    exclude:
    - '**/*.md'
    - '**/*.yml'

pr:
  branches:
    include:
    - main
    - develop
    - rel/*
  paths:
    exclude:
    - '**/*.md'
    - '**/*.yml'

pool:
  vmImage: windows-2019

variables: 
  BuildConfiguration: Release
  DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

steps:
- powershell: |
    dotnet tool install --tool-path . --version 0.35.0 Cake.Tool
    ./dotnet-cake

- task: PublishBuildArtifacts@1
  inputs:
    PathtoPublish: 'artifacts/'
    ArtifactName: 'drop'
    publishLocation: 'Container'

Move pushing of package to release pipeline
Move pushing of package to release pipeline
