forked from microsoft/MSBuildSdks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
25 lines (24 loc) · 898 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
version: 1.0.{build}
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
image: Visual Studio 2017
configuration: Debug
platform: Any CPU
build_script:
- cmd: >-
IF /I "%APPVEYOR_REPO_TAG%" EQU "TRUE" SET Configuration=Release
MSBuild dirs.proj /BinaryLogger /Logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
on_success:
- ps: >-
if($env:APPVEYOR_REPO_TAG_NAME -ne $null) {
$split = $env:APPVEYOR_REPO_TAG_NAME.Split("-")
if($split.Length -eq 2) {
$packageName = $split[0]
$pattern = "$packageName*.nupkg"
Write-Host "Uploading artifacts that match $pattern"
Get-ChildItem -Path "." -Recurse -Filter $pattern | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
}
}
on_failure:
- ps: Get-ChildItem .\*log -Recurse | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }