Skip to content

Improve CI/CD NuGet deploy example

About

Fix error in documentation for NuGet packet registry.

The issue

The example of the deploy stage for NuGet results in a 404 error when beeing executed.

deploy:
  stage: deploy
  script:
    - 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 push "bin/Release/*.nupkg" --source gitlab

image

What does this MR do?

Changed the package registry source link to be valid.
New link: "{CI_API_V4_URL}/projects/{CI_PROJECT_ID}/packages/nuget/index.json"

Merge request reports