-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathappveyor.yml
53 lines (39 loc) · 1.13 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
version: 0.3.{build}
image: Visual Studio 2022
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\Synology.Api.Client.sln"
build_script:
- dotnet build ".\src\Synology.Api.Client.sln" -p:GeneratePackageOnBuild=false
test_script:
- dotnet test ".\src\Synology.Api.Client.Tests\Synology.Api.Client.Tests.csproj"
nuget:
disable_publish_on_pr: true
for:
- branches:
only:
- master
configuration: Release
build:
publish_nuget: false
after_build:
- dotnet pack .\src\Synology.Api.Client\Synology.Api.Client.csproj -c Release -o .\artifacts --include-symbols -p:SymbolPackageFormat=snupkg
artifacts:
- path: '**\*.nupkg'
- path: '**\*.snupkg'
deploy:
- provider: NuGet
api_key:
secure: XnCGQpOBhRsGroi0Zy6aP8vZncxkFj9zOVnucjDTql4ZHfEudDMOR0LzW0Mz34/q
skip_symbols: false
artifact: /.*(\.|\.s)nupkg/