From b341fdfa4db4111b66bd3f3b6155d1e4a6590d05 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 16 Jun 2021 20:10:33 +0100 Subject: [PATCH] trying and fix 401 --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6595562..e0221fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,8 +11,7 @@ before_script: - dotnet restore after_script: - - echo "After script section" - - echo "For example you might do some cleanup here" + - dotnet nuget delete gitlab nonreg: stage: test @@ -44,7 +43,8 @@ deploy: when: always script: - dotnet pack -c Release - - 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 + - dotnet nuget add source -name gitlab --username gitlab+deploy-token-2 --password $CI_JOB_TOKEN --store-password-in-clear-text "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" + - dotnet nuget push src/*/bin/Release/*.nupkg -s gitlab only: - master