From 78109d38902a8919715a925d05400a3165d83728 Mon Sep 17 00:00:00 2001 From: "Dylan R. E. Moonfire" Date: Fri, 3 Sep 2021 20:58:01 -0500 Subject: [PATCH] build: moving NuGet server hard-code to variables --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'