From 3a7b15f231046f5f1173be00984043ca2526622c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 5 Jan 2023 11:43:18 -0800 Subject: [PATCH] Add Nuget packages to auto-build --- appveyor.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index b02ed2b6..1baf9045 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -34,6 +34,7 @@ build_script: - cmd: dotnet publish Test\Test.csproj --framework net6.0 --runtime win-x64 --self-contained true -p:PublishSingleFile=true - cmd: dotnet publish Test\Test.csproj --framework net6.0 --runtime linux-x64 --self-contained true -p:PublishSingleFile=true - cmd: dotnet publish Test\Test.csproj --framework net6.0 --runtime osx-x64 --self-contained true -p:PublishSingleFile=true + - cmd: dotnet pack BurnOutSharp\BurnOutSharp.csproj # post-build script after_build: @@ -48,6 +49,8 @@ after_build: - cmd: cd %APPVEYOR_BUILD_FOLDER%\Test\bin\Debug\net6.0\osx-x64\publish\ - cmd: 7z a -tzip %APPVEYOR_BUILD_FOLDER%\BurnOutSharp_net6.0_osx-x64.zip * + - cmd: mv %APPVEYOR_BUILD_FOLDER%\BurnOutSharp\bin\Debug\*.nupkg %APPVEYOR_BUILD_FOLDER% + # success/failure tracking on_success: - ps: Invoke-RestMethod https://raw.githubusercontent.com/DiscordHooks/appveyor-discord-webhook/master/send.ps1 -o send.ps1 @@ -68,3 +71,6 @@ artifacts: name: BurnOutSharp (.NET 6.0, Linux x64) - path: BurnOutSharp_net6.0_osx-x64.zip name: BurnOutSharp (.NET 6.0, OSX x64) + +- path: '*.nupkg' + name: Nuget Packages