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