From 38726c70365674e142043785159ce3811a92d1cd Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Tue, 17 Oct 2017 15:13:07 +0200 Subject: [PATCH] Publish to NuGet on deployment to master --- appveyor.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 04605329..164f320a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,15 +1,7 @@ image: Visual Studio 2017 -# Temporary workaround. See https://appveyor.statuspage.io/incidents/m2vdvw39kdk8 -hosts: - api.nuget.org: 93.184.221.200 - version: 2.2.{build}.0 -environment: - NuGetApiKey: - secure: uNF4gY8KN67ODxKkGPBIz+5MDdf3MRtz4Vi+9McPhWYi4Z6YMQvOcTQRWZYd/N9b - assembly_info: patch: true file: Shared\SharedAssemblyInfo.cs @@ -29,6 +21,13 @@ test_script: - cmd: dotnet vstest bin\Debug\netcoreapp1.1\SharpAdbClient.Tests.dll /testcasefilter:"TestCategory!=IntegrationTest & TestCategory!=PerformanceTest" /logger:trx;LogFileName=testresults.trx - ps: '& (Join-Path $env:APPVEYOR_BUILD_FOLDER "appveyor-testresults.ps1")' -on_success: - - ps: Push-AppveyorArtifact "$env:APPVEYOR_BUILD_FOLDER\SharpAdbClient\bin\Release\SharpAdbClient.2.2.0-beta$($env:APPVEYOR_BUILD_NUMBER).nupkg" +artifacts: + - path: SharpAdbClient\bin\Release\SharpAdbClient.2.2.0-beta$(APPVEYOR_BUILD_NUMBER).nupkg" +deploy: + provider: NuGet + on: + branch: master + api_key: + secure: EE+SrSChcQWBbROVoNVqVmUNJLh7humtKClEyJoc05VUbV5gQWbhjndwQFuiu2kz + skip_symbols: true \ No newline at end of file