This repository was archived by the owner on Sep 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathappveyor.yml
More file actions
32 lines (25 loc) · 1.44 KB
/
appveyor.yml
File metadata and controls
32 lines (25 loc) · 1.44 KB
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
install:
- choco install gitversion.portable -pre -y
platform:
- Any CPU
configuration:
- Release
assembly_info:
patch: false
before_build:
- nuget restore src\
- ps: gitversion /l console /output buildserver /updateAssemblyInfo
build:
project: src\GitReleaseNotes.sln
after_build:
- cmd: nuget pack src\GitReleaseNotes\.NuGetSpec\GitReleaseNotes.nuspec -BasePath src\GitReleaseNotes\bin\%CONFIGURATION%\ -version "%GitVersion_NuGetVersion%" -Tool
- ps: (Get-Content src\GitReleaseNotes\.ChocolateySpec\tools\chocolateyInstall.ps1).replace('__version__', $env:GitVersion_SemVer) | Set-Content src\GitReleaseNotes\.ChocolateySpec\tools\chocolateyInstall.ps1
- cmd: xcopy src\GitReleaseNotes\bin\%CONFIGURATION% output\Chocolatey\tools /S /I
- cmd: xcopy src\GitReleaseNotes\.ChocolateySpec output\Chocolatey /S /I
- cmd: nuget pack output\Chocolatey\GitReleaseNotes.Portable.nuspec -version "%GitVersion_NuGetVersion%" -Tool
- cmd: 7z a "GitReleaseNotes.%GitVersion_NuGetVersion%.zip" -r .\src\GitReleaseNotes\bin\%CONFIGURATION%\*.*
- cmd: appveyor PushArtifact "GitReleaseNotes.%GitVersion_NuGetVersion%.nupkg"
- cmd: appveyor PushArtifact "GitReleaseNotes.%GitVersion_NuGetVersion%.zip"
- cmd: appveyor PushArtifact "GitReleaseNotes.Portable.%GitVersion_NuGetVersion%.nupkg"
cache:
- src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified