forked from samholder/SpecFlow.VisualStudio2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
49 lines (35 loc) · 1.33 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
version: build{build}
branches:
only:
- master
environment:
SpecFlowBaseVersion: 0.1.0
SpecFlowPackageVersion: "0.1.0-ci$(APPVEYOR_BUILD_NUMBER)"
myget_api_key:
secure: T2HtRS5HxW134lpmeKqezf3lmr9TvwmHry/w7SzSIROt+LOaW5gF7O1NHhPvyUqI
cache:
- packages -> **\packages.config
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: "$(SpecFlowBaseVersion)"
assembly_file_version: "$(SpecFlowBaseVersion)"
assembly_informational_version: "$(SpecFlowPackageVersion)"
nuget:
project_feed: true
disable_publish_on_pr: true
configuration: Release
before_build:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- appveyor DownloadFile https://raw.githubusercontent.com/appveyor/ci/master/scripts/nuget-restore.cmd
- nuget-restore
build:
project: SpecFlow.VisualStudio2.sln
verbosity: normal
artifacts:
- path: TechTalk.SpecFlow.IDE.VisualStudio\bin\Release\TechTalk.SpecFlow.IDE.VisualStudio.vsix
deploy_script:
- ps: $vsix = Join-Path -Path $env:APPVEYOR_BUILD_FOLDER -ChildPath "TechTalk.SpecFlow.IDE.VisualStudio\bin\Release\TechTalk.SpecFlow.IDE.VisualStudio.vsix"
- ps: $wc = new-object System.Net.WebClient
- ps: $wc.Headers["X-NuGet-ApiKey"] = $env:myget_api_key
- ps: $wc.UploadFile("https://www.myget.org/F/sabotageandi-vsix/vsix/upload", $vsix)