-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
57 lines (42 loc) · 1.12 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
47
48
49
50
51
52
53
54
55
56
57
version: 0.1.{build}
image: Visual Studio 2022
only_commits:
files:
- src/*
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: "{version}"
package_version: "{version}"
assembly_version: "{version}"
file_version: "{version}"
informational_version: "{version}"
configuration: Debug
build:
publish_nuget: false
before_build:
- dotnet restore ".\src\TvMaze.Api.Client.sln"
build_script:
- dotnet build ".\src\TvMaze.Api.Client.sln"
test_script:
- dotnet test ".\src\TvMaze.Api.Client.Tests\TvMaze.Api.Client.Tests.csproj"
nuget:
disable_publish_on_pr: true
for:
- branches:
only:
- master
configuration: Release
build:
publish_nuget: true
after_build:
- dotnet pack .\src\TvMaze.Api.Client\TvMaze.Api.Client.csproj -c Release -o .\artifacts --include-symbols -p:SymbolPackageFormat=snupkg
artifacts:
- path: '**\*.nupkg'
- path: '**\*.snupkg'
deploy:
- provider: NuGet
api_key:
secure: N8LcRt4KOHLKIuIGvJmTeT/uzT/dnDlLAZ29mUl36cxS3VYRM+DlS3hRwYTAaU+w
skip_symbols: false
artifact: /.*(\.|\.s)nupkg/