From e88763df09742313b2319cfc2bdf7d5fb2392073 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 16 Jun 2021 19:39:58 +0100 Subject: [PATCH] simplified --- .gitlab-ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1c45eb6..6595562 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,11 +14,6 @@ after_script: - echo "After script section" - echo "For example you might do some cleanup here" -build1: - stage: build - script: - - dotnet build - nonreg: stage: test script: @@ -37,15 +32,19 @@ publish: artifacts: paths: - src/nuget-host/bin/Release/netcoreapp2.1/publish/ + when: always script: - dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources deploy: stage: deploy + artifacts: + paths: + - src/*/bin/Release/*.nupkg + when: always script: - dotnet pack -c Release - - dotnet nuget push src/nuget-host/bin/Release/nuget-host.*.nupkg -s "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" -k $CI_JOB_TOKEN - - dotnet nuget push src/nuget-cli/bin/Release/nuget-cli.*.nupkg -s "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" -k $CI_JOB_TOKEN + - dotnet nuget push src/*/bin/Release/*.nupkg -s "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" -k $CI_JOB_TOKEN only: - master @@ -53,7 +52,8 @@ pack: stage: deploy artifacts: paths: - - src/nuget-host/bin/Release/nuget-host.*.nupkg + - src/*/bin/Release/*.nupkg + when: always script: - dotnet pack --configuration Release --no-restore - cd src/nuget-cli