os: Visual Studio 2017

build_script:
  - cmd: echo /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" >> msbuild.rsp
  - cmd: mkdir %TEMP%\packages || echo Local packages directory already exists
  - cmd: mkdir out
  - cmd: msbuild tools\CoreBuild.Tools.sln /t:restore
  - cmd: msbuild tools\CoreBuild.Tools.sln /p:PackageOutputPath=%cd%\out
  - cmd: msbuild src\corebuild.nuproj /t:restore
  - cmd: msbuild src\corebuild.nuproj /p:PackageOutputPath=%cd%\out

skip_commits:
  files:
    - docs/*
    - 'README.md'

nuget:
  project_feed: true
  disable_publish_on_pr: true

deploy:
  - provider: NuGet
    api_key:
      secure: uY/U1R+UWPZBitJVqdNu6ttxZPuZeRoM4iUhYLeIMv8028s32s8vYwHMarF3zHdG
    artifact: Package
    on:
      appveyor_repo_tag: true
  
artifacts:
  - path: 'out\*.nupkg'
    name: Package
os: Visual Studio 2017

build_script:
  - cmd: echo /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" >> msbuild.rsp
  - cmd: mkdir %TEMP%\packages || echo Local packages directory already exists
  - cmd: mkdir out
  - cmd: msbuild tools\CoreBuild.Tools.sln /t:restore
  - cmd: msbuild tools\CoreBuild.Tools.sln /p:PackageOutputPath=%cd%\out
  - cmd: msbuild src\corebuild.nuproj /t:restore
  - cmd: msbuild src\corebuild.nuproj /p:PackageOutputPath=%cd%\out

skip_commits:
  files:
    - docs/*
    - 'README.md'

nuget:
  project_feed: true
  disable_publish_on_pr: true

deploy:
  - Environment: NuGet
    name: NuGet
    artifact: Package
    on:
      appveyor_repo_tag: true
  
artifacts:
  - path: 'out\*.nupkg'
    name: Package

Deploy to existing NuGet environment on tag
Deploy to existing NuGet environment on tag