forked from jakejscott/Humidifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
44 lines (37 loc) · 1.3 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: 10.0.{build}
image: Visual Studio 2017
configuration: Release
install:
- ps: >-
cd src
nuget restore Humidifier.sln
$env:HUMIDIFIER_BUILD_NUMBER = ([int]$env:APPVEYOR_BUILD_NUMBER).ToString("000")
$env:HUMIDIFIER_VERSION_SUFFIX = "pre$env:HUMIDIFIER_BUILD_NUMBER"
$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:appveyor_nuget_push = 'true'
$env:HUMIDIFIER_VERSION_SUFFIX = ""
}
if($env:appveyor_repo_tag_name -eq 'latest') {
$env:appveyor_nuget_push = 'true'
}
}
}
build:
project: src/Humidifier.sln
verbosity: minimal
before_package:
- cmd: >-
msbuild /t:pack /p:VersionSuffix="%HUMIDIFIER_VERSION_SUFFIX%" /p:Configuration=Release Humidifier/Humidifier.csproj
msbuild /t:pack /p:VersionSuffix="%HUMIDIFIER_VERSION_SUFFIX%" /p:Configuration=Release Humidifier.Json/Humidifier.Json.csproj
artifacts:
- path: src\Humidifier\Bin\Release\*.nupkg
- path: src\Humidifier.Json\Bin\Release\*.nupkg
deploy:
- provider: NuGet
api_key:
secure: nr25s44o52anjrtcBL7L34AIgH5VixWUqi2l1GawzufnVmPs4KE1qpezO63OloqP
on:
appveyor_nuget_push: true