Skip to content

Commit

Permalink
Push to NuGet.org on build
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed May 31, 2015
1 parent ff4bc79 commit 7d65768
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
version: 1.0.{build}.0

environment:
NuGetApiKey:
secure: uNF4gY8KN67ODxKkGPBIz+5MDdf3MRtz4Vi+9McPhWYi4Z6YMQvOcTQRWZYd/N9b

assembly_info:
patch: true
file: Shared\SharedAssemblyInfo.cs
Expand All @@ -9,7 +14,9 @@ build_script:
- msbuild Managed.Adb.sln /p:Configuration=Release /p:Platform=x86 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

on_success:
- cmd: nuget pack Managed.Adb.nuspec -Version {version}
- cmd: nuget pack Managed.Adb.nuspec -Version %APPVEYOR_BUILD_VERSION%
- cmd: nuget setApiKey %NuGetApiKey%
- cmd: nuget push Managed.Adb.{version}.nupkg
- ps: Push-AppveyorArtifact "Managed.Adb.$($env:APPVEYOR_BUILD_VERSION).nupkg"

test:
Expand Down

0 comments on commit 7d65768

Please sign in to comment.