From 4db781a0404052c3328909f81c94983ec4cee3df Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Sun, 4 Nov 2018 08:38:37 -0500 Subject: [PATCH] fix up build --- appveyor.yml | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 2a147f9..cfa2ef6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,20 +1,23 @@ -configuration: Release -version: 0.1.{build} -nuget: - account_feed: true - project_feed: true - -init: - - git config --global core.autocrlf true - -before_build: -- ps: invoke-webrequest https://go.microsoft.com/fwlink/?LinkID=827524 -OutFile core.exe -- ps: .\core.exe /install /quiet /norestart -- ps: dotnet restore +image: Visual Studio 2017 +version: 1.0.{build} build_script: -- ps: dotnet build .\src\TurboLinks.Net -- ps: dotnet build .\src\TurboLinksExample - +- ps: >- + dotnet restore TurboLinks.Net.sln --source https://api.nuget.org/v3/index.json + dotnet build TurboLinks.Net.sln + if($env:APPVEYOR_REPO_TAG -eq "true") + { + dotnet pack src\TurboLinks.Net\TurboLinks.Net.csproj --configuration Release --output ..\..\output /p:Version=$env:APPVEYOR_REPO_TAG_NAME + } + else + { + dotnet pack src\TurboLinks.Net\TurboLinks.Net.csproj --configuration Release --output ..\..\output /p:Version=0.0.1-build-$env:APPVEYOR_BUILD_NUMBER + } artifacts: - - path: artifacts\bin\TurboLinks.Net\Release\*.nupkg \ No newline at end of file +- path: output\**.nupkg +deploy: +- provider: NuGet + api_key: + secure: //tKHlb2yqAtpxnR6p9IAtXwQNaq8UYYyIFSD0QVF3XnEasIxG2gTWdmWuG87fUX + on: + appveyor_repo_tag: true \ No newline at end of file