forked from helix-toolkit/helix-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
65 lines (56 loc) · 2.81 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
image:
- Visual Studio 2019
pull_requests:
do_not_increment_build_number: true
skip_commits:
files:
- '*.md'
install:
- cinst gitversion.portable --version=4.0.0 -y
configuration: Release
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{build}'
informational_version: '{version}'
before_build:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- nuget restore .\Source\HelixToolkit.AppVeyor.sln
- gitversion /l console /output buildserver /updateAssemblyInfo
build_script:
- msbuild Source/HelixToolkit.AppVeyor.sln "/property:Platform=Any CPU" "/property:Version=%GitVersion_NuGetVersion%" /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:SourceLinkCreate=true
after_build:
- nuget pack Source\HelixToolkit.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- nuget pack Source\HelixToolkit.Wpf.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- nuget pack Source\HelixToolkit.Wpf.Input.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- nuget pack Source\HelixToolkit.Core.Wpf.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- nuget pack Source\HelixToolkit.Wpf.Sharpdx.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- nuget pack Source\HelixToolkit.UWP.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- nuget pack Source\HelixToolkit.SharpDX.Core.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- nuget pack Source\HelixToolkit.SharpDX.Core.Wpf.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- nuget pack Source\HelixToolkit.SharpDX.Assimp.nuspec -version "%GitVersion_NuGetVersion%" -Symbols -SymbolPackageFormat snupkg
- if "%APPVEYOR_REPO_NAME%" == "helix-toolkit/helix-toolkit" Source\build-dist-examples.cmd
artifacts:
- path: '*.nupkg'
name: HelixToolkit-packages-$(GitVersion_SemVer)
type: zip
- path: '*.snupkg'
name: HelixToolkit-packages-symbols-$(GitVersion_SemVer)
type: zip
- path: Source\dist-examples
name: HelixToolkit-Examples-$(GitVersion_SemVer)
type: zip
deploy:
provider: NuGet
server: https://www.myget.org/F/helix-toolkit/api/v2/package
api_key:
secure: 2GnqgfpkOUH6Umfn1WWlun0b021+QeInBXkgQOQfa4/wDOYHLT757rrjTsb0lmon
skip_symbols: false
symbol_server: # remove to push symbols to SymbolSource.org
artifact: /.*\.nupkg/
on:
APPVEYOR_REPO_NAME: helix-toolkit/helix-toolkit
APPVEYOR_ACCOUNT_NAME: objorke