version: 3.0.{build}
skip_tags: true
image: Visual Studio 2017 Preview
configuration: Release
dotnet_csproj:
  patch: true
  file: '**\*.csproj'
  version: '{version}'
  package_version: '{version}'
before_build:
- cmd: >-
    dotnet restore

    cd "src/Noobot.Console/Configuration/"

    copy "config.default.json" "config.json"

    cd ../../../
build:
  publish_nuget: true
  include_nuget_references: true
  verbosity: minimal
after_build:
- cmd: >-
    del %APPVEYOR_BUILD_FOLDER%\src\Noobot.Console\bin\Release\*.pdb

    del %APPVEYOR_BUILD_FOLDER%\src\Noobot.Console\bin\Release\*.xml


    7z a noobot.zip %APPVEYOR_BUILD_FOLDER%\src\Noobot.Console\bin\Release\*
test: off
artifacts:
- path: noobot.zip
deploy:
- provider: GitHub
  auth_token:
    secure: 8t4+xbVlkXA/FY3516ThrMibGxfCT7ZcSwyZw7KNwUlCH08KMPtznY2QphEn1n/z
  artifact: noobot.zip,/.*\.nupkg/
  draft: true
  on:
    branch: master
version: 3.0.{build}
skip_tags: true
image: Visual Studio 2017 Preview
configuration: Release
dotnet_csproj:
  patch: true
  file: '**\*.csproj'
  version: '{version}'
  package_version: '{version}'
before_build:
- cmd: >-
    dotnet restore

    cd "src/Noobot.Console/Configuration/"

    copy "config.default.json" "config.json"

    cd ../../../
build:
  publish_nuget: true
  include_nuget_references: true
  verbosity: minimal
after_build:
- ps: >-
    Push-Location "%APPVEYOR_BUILD_FOLDER%\src\Noobot.Console\"

    dotnet publish -c Release -r win-x64 -f netcoreapp2.0

    $buildPath = Resolve-Path ".\bin\Release\*\win-x64"
    Remove-Item "$buildPath\*.pdb"
    Remove-Item "$buildPath\publish" -Recurse -Force

    Pop-Location

    7z a noobot.zip "$buildPath\*"

test: off
artifacts:
- path: noobot.zip
deploy:
- provider: GitHub
  auth_token:
    secure: 8t4+xbVlkXA/FY3516ThrMibGxfCT7ZcSwyZw7KNwUlCH08KMPtznY2QphEn1n/z
  artifact: noobot.zip,/.*\.nupkg/
  draft: true
  on:
    branch: master
Build should create console exe
Build should create console exe
