Commit 7c1f5b41 authored by Nick Gaskill's avatar Nick Gaskill

Merge branch 'Laurnz-master-patch-42551' into 'master'

Improve CI/CD NuGet deploy example

See merge request gitlab-org/gitlab!64594
parents e0418b41 23a6334c
...@@ -337,7 +337,7 @@ updated: ...@@ -337,7 +337,7 @@ updated:
stage: deploy stage: deploy
script: script:
- dotnet pack -c Release - dotnet pack -c Release
- dotnet nuget add source "${CI_API_V4_URL}/${CI_PROJECT_ID}/packages/nuget/index.json" --name gitlab --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text - dotnet nuget add source "${CI_API_V4_URL}/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/Release/*.nupkg" --source gitlab - dotnet nuget push "bin/Release/*.nupkg" --source gitlab
only: only:
- master - master
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment