version: '{build}'

image: Visual Studio 2017
configuration: Release

before_build:
- ps: nuget restore

build:
  verbosity: minimal

after_build:
- ps: Deploy\Prepare.ps1

artifacts:
- path: Deploy\bin\DiscordChatExporter.zip
  name: DiscordChatExporter.zip
- path: Deploy\bin\DiscordChatExporter.Cli.zip
  name: DiscordChatExporter.Cli.zip

deploy:
- provider: GitHub
  auth_token:
    secure: sjQHWRw29AMiVMn3MtidtWnAzAf1mJ+mkJ/7h1B9TIAHhkFrqwMK7LtXV+uNJ9AO
  artifact: DiscordChatExporter.zip,DiscordChatExporter.Cli.zip
  description: '[Changelog](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/Changelog.md)'
  on:
    branch: master
    appveyor_repo_tag: true