-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
73 lines (63 loc) · 1.71 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
pull_requests:
do_not_increment_build_number: true
skip_branch_with_pr: true
skip_tags: true
image: Visual Studio 2022
platform: Any CPU
artifacts:
- path: dist/*.nupkg
name: NuGet Package
- path: dist/*.snupkg
name: NuGet Symbol Package
cache:
- '%USERPROFILE%\.nuget\packages'
- '%LocalAppData%\NuGet\Cache'
- '%LocalAppData%\NuGet\v3-cache'
init:
- ps: "$env:VERSION=$env:APPVEYOR_BUILD_VERSION"
build_script:
- ps: "git config --system core.longpaths true"
- ps: "git submodule init -q \ngit submodule update -q \ngit submodule -q foreach git fetch origin -q \ngit submodule -q foreach git pull origin master -q"
- ps: "dotnet build -p:Version=$env:VERSION -p:ContinuousIntegrationBuild=true -c $env:CONFIGURATION \ndotnet pack -p:Version=$env:VERSION -p:ContinuousIntegrationBuild=true -c $env:CONFIGURATION --no-restore"
test:
assemblies:
only:
- '**\*.tests.dll'
branches:
only:
- master
- /alpha|beta|preview|rc|snapshot/
- dev
for:
- version: 0.2.{build}
branches:
only:
- master
environment:
CONFIGURATION: Release
cache:
deploy:
- provider: NuGet
api_key:
secure: e/WM/m17EikU3j5hKj3yFMOTzT/nRd+t/ks6B+xlvlrqGvkRWEaXFe61Wtl4MU64
on:
branch: master
- version: 0.2-{branch}.{build}
branches:
only:
- /alpha|beta|preview|rc|snapshot/
environment:
CONFIGURATION: Release
deploy:
- provider: NuGet
api_key:
secure: e/WM/m17EikU3j5hKj3yFMOTzT/nRd+t/ks6B+xlvlrqGvkRWEaXFe61Wtl4MU64
- version: 0.2-{branch}.{build}
branches:
only:
- dev
environment:
CONFIGURATION: Debug
artifacts:
cache:
deploy: off