-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
44 lines (41 loc) · 998 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: 1.0.{build}
image: Visual Studio 2019
# Set "build version number" to "short-commit-hash" or when tagged to "tag name" (Travis style)
init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
else
{
Update-AppveyorBuild -Version "0.0.0-$($env:APPVEYOR_REPO_COMMIT.substring(0,8))"
}
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- cmd: dotnet restore
build:
project: DotBook.sln
verbosity: minimal
after_build:
- cmd: dotnet pack --output ./
test_script:
- cmd: >-
cd DotBook.Tests
dotnet test
cd ../
artifacts:
- path: 'DotBook/*.nupkg'
deploy:
- provider: NuGet
api_key:
secure: QEbJDFQZ7kaOSNB0GzWwcYQcb80yIYWQGuB26aLioZdFwRROZALcaGarK/TSQVkX
on:
APPVEYOR_REPO_TAG: true