Skip to content

Commit 507da96

Browse files
committed
Try to fix AppVeyor build
Add workaround deploy script, described here: http://help.appveyor.com/discussions/problems/8215-cannot-publish-to-nuget-get-400-bad-request-error
1 parent 73a4c6a commit 507da96

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

appveyor.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ deploy:
3434
api_key:
3535
secure: 4E0S7bjDLDdCCLtRqD0mMXTg5pOwppHWS5C77acZ9HpvaN8rGmwn6ANfLrAUxxF+
3636
on:
37-
branch: master
37+
branch: master
38+
deploy_script:
39+
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
40+
- ps: .\nuget.exe setApiKey %api_key% -source https://www.nuget.org | out-null
41+
- ps: ($artifacts.values | Where-Object { $_.path -like '*.nupkg' }) | foreach-object {nuget.exe push $_.path -Source https://www.nuget.org/api/v2/package}

0 commit comments

Comments
 (0)