diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b458256..bae7879 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -73,8 +73,7 @@ deploy: - dotnet restore - dotnet build - dotnet pack -c Release - - dotnet nuget add source "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" --name gitlab --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text - - dotnet nuget push "bin/*.nupkg" --source gitlab + - dotnet nuget push "bin/*.nupkg" $NUGET_TOKEN -Source "$NUGET_PUSH_URL" rules: - if: '$FORCE_DEPLOY' - if: '$CI_COMMIT_TITLE =~ /^chore\(release\)/ && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'