forked from xoofx/SharpYaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
33 lines (30 loc) · 870 Bytes
/
appveyor.yml
File metadata and controls
33 lines (30 loc) · 870 Bytes
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
26
27
28
29
30
31
32
33
version: 1.0.{build}
image: Visual Studio 2017
configuration: Release
install:
- ps: >-
nuget restore
$env:SHARPYAML_BUILD_NUMBER = ([int]$env:APPVEYOR_BUILD_NUMBER).ToString("000")
$env:appveyor_nuget_push = 'false'
if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
if($env:appveyor_repo_tag -eq 'True') {
if($env:appveyor_repo_tag_name -match '^v[0-9]') {
$env:SHARPYAML_VERSION_SUFFIX = ""
$env:appveyor_nuget_push = 'true'
}
}
}
build:
project: SharpYaml.sln
verbosity: minimal
before_package:
- cmd: msbuild /t:pack /p:Configuration=Release SharpYaml/SharpYaml.csproj
artifacts:
- path: SharpYaml\Bin\Release\*.nupkg
name: SharpYaml Nugets
deploy:
- provider: NuGet
api_key:
secure: 7cthHh+wYWZjhqxaxR6QObRaRnstvFkQOY7MkxIsC5kpQEBlKZXuinf0IybbYxJt
on:
appveyor_nuget_push: true