forked from trullock/NUglify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
46 lines (38 loc) · 1.19 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
45
46
version: 10.0.{build}
image: Visual Studio 2019
configuration: Release
install:
- ps: >-
git submodule update --init --recursive
cd src
nuget restore NUglify.sln
$env:THISLIB_BUILD_NUMBER = ([int]$env:APPVEYOR_BUILD_NUMBER).ToString("000")
$env:THISLIB_VERSION_SUFFIX = ""
$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:THISLIB_VERSION_SUFFIX = ""
}
if($env:appveyor_repo_tag_name -eq 'latest') {
$env:appveyor_nuget_push = 'true'
$env:THISLIB_VERSION_SUFFIX = "pre$env:THISLIB_BUILD_NUMBER"
}
}
}
dir env:
build:
project: src/NUglify.sln
verbosity: minimal
before_package:
- cmd: msbuild /t:pack /p:VersionSuffix="%THISLIB_VERSION_SUFFIX%" /p:Configuration=Release NUglify/NUglify.csproj
artifacts:
- path: src\NUglify\Bin\Release\*.nupkg
name: NUglify Nugets
deploy:
- provider: NuGet
api_key:
secure: /14YYJN+ZGBhENhHpufcbTXofK2+g5GHyG8XI3CJjeY9DUgMv/ZxBTAAZZz1H1Uo
on:
appveyor_nuget_push: true