-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
27 lines (22 loc) · 975 Bytes
/
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
image: Visual Studio 2017
platform: Any CPU
configuration: Release
version: 1.0.0.{build}
install:
- ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
- ps: Vsix-IncrementVsixVersion -versionType revision | Vsix-UpdateBuildVersion
- ps: Vsix-TokenReplacement src\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
build_script:
- nuget restore -verbosity quiet
- msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
after_build:
- ps: Vsix-PushArtifacts | Vsix-PublishToGallery
deploy:
# Deploy to GitHub Releases
- provider: GitHub
artifact: /.*\.vsix/ # upload all vsix files to release assets
draft: false
prerelease: false
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only