Add Nuget packages to auto-build

This commit is contained in:
Matt Nadareski
2023-01-05 11:43:18 -08:00
parent cb2c96ef7d
commit 3a7b15f231

View File

@@ -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