From 61dc82df5bf277e4385f4ac7859d5a47f9c4d2b7 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 9 May 2021 16:28:20 +0100 Subject: [PATCH] artifacts --- .gitlab-ci.yml | 6 +++--- .vscode/launch.json | 23 +---------------------- .vscode/tasks.json | 19 +++++++++++++++++-- 3 files changed, 21 insertions(+), 27 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 459f013..af03345 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,7 +35,7 @@ publish: stage: deploy artifacts: paths: - - bin/Release/netcoreapp2.1/publish/ + - src/nuget-host/bin/Release/netcoreapp2.1/publish/ script: - dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources @@ -43,7 +43,7 @@ pack: stage: deploy artifacts: paths: - - bin/Release/nuget-host.*.nupkg + - src/nuget-host/bin/Release/nuget-host.*.nupkg script: - dotnet pack --configuration Release --no-restore - - nuget push -Source $NUGETSOURCE -ApiKey $NUGETSOURCEAPIKEY src/nuget-host/bin/Release/nuget-host.*.nupkg + - nuget push -Source $NUGETSOURCE -ApiKey "$NUGETSOURCEAPIKEY" src/nuget-host/bin/Release/nuget-host.*.nupkg diff --git a/.vscode/launch.json b/.vscode/launch.json index e9915cc..d6afe47 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "configurations": [ { "name": ".NET Core Launch (web)", - "type": "clr", + "type": "coreclr", "request": "launch", "preLaunchTask": "build", "program": "${workspaceFolder}/src/nuget-host/bin/Debug/netcoreapp2.1/nuget-host.dll", @@ -24,27 +24,6 @@ "sourceFileMap": { "/Views": "${workspaceFolder}/src/nuget-host/Views" } - }, - { - "name": ".NET Core Launch (prod)", - "type": "clr", - "request": "launch", - "preLaunchTask": "build", - "program": "${workspaceFolder}/src/nuget-host/bin/Debug/netcoreapp2.1/nuget-host.dll", - "args": [], - "cwd": "${workspaceFolder}/src/nuget-host/", - "stopAtEntry": false, - "requireExactSource": false, - "serverReadyAction": { - "action": "openExternally", - "pattern": "\\\\bNow listening on:\\\\s+(https?://\\\\S+)" - }, - "env": { - "ASPNETCORE_ENVIRONMENT": "Production" - }, - "sourceFileMap": { - "/Views": "${workspaceFolder}/src/nuget-host/Views" - } } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d3e1e2e..776c976 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -32,7 +32,22 @@ "type": "process", "args": [ "publish", - "${workspaceFolder}/nuget-host.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "test", + "command": "dotnet", + "type": "process", + "options": { + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "args": [ + "test", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary" ], @@ -58,7 +73,7 @@ ], "options": { "env": { - "ASPNETCORE_ENV": "Development" + "ASPNETCORE_ENVIRONMENT": "Development" } }, "problemMatcher": "$msCompile"