-
-
Notifications
You must be signed in to change notification settings - Fork 174
/
appveyor.yml
42 lines (33 loc) · 1.42 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
image: Visual Studio 2017
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
- npm --version
before_build:
- ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion
- ps: Vsix-TokenReplacement src\WebCompilerVsix\WebCompilerPackage.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
- ps: Vsix-TokenReplacement src\WebCompiler\Compile\CompilerService.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
build_script:
- nuget restore -Verbosity quiet
- dotnet restore src\WebCompiler\
- msbuild .\src\WebCompilerVsix\WebCompilerVsix.csproj /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
- msbuild .\src\WebCompilerTest\WebCompilerTest.csproj /p:configuration=Release /v:m
- ps: dotnet pack src\WebCompiler\ -c Release "/p:Version=${env:APPVEYOR_BUILD_VERSION}"
after_test:
- ps: Vsix-PushArtifacts
artifacts:
- path: src\WebCompiler\**\*.nupkg
name: NuGet package
before_deploy:
- ps: Vsix-CreateChocolatyPackage -packageId webcompiler
deploy:
- provider: NuGet
artifact: /NuGet/
api_key:
secure: oy2inuap4zo4iqrna3galf3x3gtz42vuvii2pyetfbfwkq
- provider: Environment
name: Chocolatey
on:
branch: master
appveyor_repo_commit_message_extended: /\[release\]/
after_deploy:
- ps: Vsix-PublishToGallery .\src\WebCompilerVsix\**\*.vsix