From 490c4d18274ac220a6691d09bf144ad3f4769448 Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Mon, 6 Sep 2021 15:07:03 +0200 Subject: [PATCH] Build Tapeti.Cmd in AppVeyor --- appveyor.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index dc0306a..9d2a206 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -62,6 +62,15 @@ after_build: - cmd: dotnet pack -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output output Tapeti.UnityContainer\Tapeti.UnityContainer.csproj /p:Configuration=Release /p:Version=%GitVersion_NuGetVersion% - cmd: appveyor PushArtifact "output\Tapeti.UnityContainer.%GitVersion_NuGetVersion%.nupkg" - cmd: appveyor PushArtifact "output\Tapeti.UnityContainer.%GitVersion_NuGetVersion%.snupkg" + # Tapeti.Cmd + - cmd: dotnet publish -c Release -r win-x64 --self-contained=true -o publish\x64\selfcontained Tapeti.Cmd\Tapeti.Cmd.csproj + - cmd: dotnet publish -c Release -r win-x64 --self-contained=false -o publish\x64 Tapeti.Cmd\Tapeti.Cmd.csproj + - cmd: copy publish\x64\selfcontained\Tapeti.Cmd.exe publish\x64 + - cmd: rmdir /s publish\x64\selfcontained + - cmd: 7z a output\Tapeti.Cmd-x64-%GitVersion_NuGetVersion%.zip %APPVEYOR_BUILD_FOLDER%\public\x64\* + +artifacts: +- path: 'output\Tapeti.Cmd-*.zip' build: project: Tapeti.sln @@ -73,9 +82,18 @@ configuration: - Release deploy: - provider: NuGet - api_key: - secure: 3WCSZAzan66vEmHZ1q3XzfOfucuAQiA+SiCDChO/gswbxfIXUpiM1eMNASDa3qWH + - provider: NuGet + api_key: + secure: 3WCSZAzan66vEmHZ1q3XzfOfucuAQiA+SiCDChO/gswbxfIXUpiM1eMNASDa3qWH - skip_symbols: false - artifact: /.*(\.|\.s)nupkg/ \ No newline at end of file + skip_symbols: false + artifact: /.*(\.|\.s)nupkg/ + - provider: GitHub + auth_token: + secure: dWOConKg3VTPvd9DmWOOKiX1SJCalaqKInuk9GlKQOZX2s+Bia49J7q+AHO8wFj7 + artifact: /output\\Tapeti.Cmd-.*\.exe/ + draft: false + prerelease: false + on: + branch: master + APPVEYOR_REPO_TAG: true \ No newline at end of file