version: 1.0.{build} image: Visual Studio 2017 init: - ps: >- if ($env:APPVEYOR_REPO_TAG -eq "true") { Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME" } else { Update-AppveyorBuild -Version "dev-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))" } before_build: - cmd: nuget restore src/JiraTimeBot.sln build: project: src/JiraTimeBot.sln after_build: - cmd: 7z a JiraTimeBot.zip %APPVEYOR_BUILD_FOLDER%/src/JiraTimeBot/bin/Debug/* artifacts: - path: JiraTimeBot.zip name: JiraTimeBot.zip deploy: - provider: GitHub auth_token: secure: Jg8vtDMtgadXE5uifFSr5y9KNrGAjvFntqnRHzyuVWkssitctTtVq086svS2zXAq artifact: JiraTimeBot.zip on: APPVEYOR_REPO_TAG: true