34 lines
724 B
YAML
34 lines
724 B
YAML
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: vcrXfbGk400wdnU45LZqhuGCdnPJsYn5lSHjguHSRm1riRDiVMC20BzvfvDIjcI/
|
|
artifact: JiraTimeBot.zip
|
|
on:
|
|
APPVEYOR_REPO_TAG: true |