trigger:
- master
- rel/*

pr:
- master
- rel/*

pool:
  vmImage: vs2017-win2016

steps:
- task: DotNetCoreInstaller@0
  displayName: Install Dot Net Core v2.2.1
  inputs:
    version: '2.2.103'

- task: BatchScript@1
  inputs:
    filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
    arguments: -no_logo
    modifyEnvironment: true
  displayName: Setup Environment Variables

- script: build.cmd
  displayName: Build 
  env:
    SIGNCLIENT_SECRET: $(SignClientSecret)
    SIGNCLIENT_USER: $(SignClientUser)
    CODECOV_TOKEN: $(CODECOV_TOKEN)
    ArtifactDirectory: $(System.DefaultWorkingDirectory)\Artifacts

- task: CopyFiles@2
  inputs:
    Contents: 'artifacts/packages/*.nupkg'
    TargetFolder: '$(build.artifactstagingdirectory)\packages'
    flattenFolders: true

- task: PublishBuildArtifacts@1
  displayName: Publish Package Artifacts
  inputs:
    pathToPublish: '$(build.artifactstagingdirectory)\packages'
    artifactType: container
    artifactName: Packages

- task: CopyFiles@2
  inputs:
    Contents: 'artifacts/binaries/**/*'
    TargetFolder: '$(build.artifactstagingdirectory)\binaries'

- task: PublishBuildArtifacts@1
  displayName: Publish Binaries
  inputs:
    pathToPublish: '$(build.artifactstagingdirectory)\binaries'
    artifactType: container
    artifactName: Binaries

trigger:
- master
- rel/*
- preview/*

pr:
- master
- rel/*
- preview/*

resources:
  repositories:
    - repository: templates
      type: github
      name: ReactiveUI/ReactiveUI.Cake.Recipe
      endpoint: reactiveui

jobs:
- template: Azure/azure-pipelines.yml@templates  # Template reference
Update the azure scripts to use reactiveui.cake.recipe
housekeeping: Update the azure scripts to use reactiveui.cake.recipe
