build: moving NuGet server hard-code to variables

This commit is contained in:
Dylan R. E. Moonfire 2021-09-03 20:58:01 -05:00
parent b364f299c6
commit 78109d3890

View file

@ -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'