artifacts

broken/ef
Paul Schneider 3 years ago
parent db6f514fb5
commit 61dc82df5b
3 changed files with 21 additions and 27 deletions

@ -35,7 +35,7 @@ publish:
stage: deploy stage: deploy
artifacts: artifacts:
paths: paths:
- bin/Release/netcoreapp2.1/publish/ - src/nuget-host/bin/Release/netcoreapp2.1/publish/
script: script:
- dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources - dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources
@ -43,7 +43,7 @@ pack:
stage: deploy stage: deploy
artifacts: artifacts:
paths: paths:
- bin/Release/nuget-host.*.nupkg - src/nuget-host/bin/Release/nuget-host.*.nupkg
script: script:
- dotnet pack --configuration Release --no-restore - 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

@ -6,7 +6,7 @@
"configurations": [ "configurations": [
{ {
"name": ".NET Core Launch (web)", "name": ".NET Core Launch (web)",
"type": "clr", "type": "coreclr",
"request": "launch", "request": "launch",
"preLaunchTask": "build", "preLaunchTask": "build",
"program": "${workspaceFolder}/src/nuget-host/bin/Debug/netcoreapp2.1/nuget-host.dll", "program": "${workspaceFolder}/src/nuget-host/bin/Debug/netcoreapp2.1/nuget-host.dll",
@ -24,27 +24,6 @@
"sourceFileMap": { "sourceFileMap": {
"/Views": "${workspaceFolder}/src/nuget-host/Views" "/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"
}
} }
] ]
} }

19
.vscode/tasks.json vendored

@ -32,7 +32,22 @@
"type": "process", "type": "process",
"args": [ "args": [
"publish", "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", "/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary" "/consoleloggerparameters:NoSummary"
], ],
@ -58,7 +73,7 @@
], ],
"options": { "options": {
"env": { "env": {
"ASPNETCORE_ENV": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"problemMatcher": "$msCompile" "problemMatcher": "$msCompile"

Loading…