deploy src/**/*.nupkg

This commit is contained in:
Paul Schneider
2021-06-14 00:53:59 +01:00
parent 4fa03c5a1d
commit 7752620bef

View File

@ -8,7 +8,7 @@ before_script:
- echo "Before script section" - echo "Before script section"
- echo "For example you might run an update here or install a build dependency" - echo "For example you might run an update here or install a build dependency"
- echo "Or perhaps you might print out some debugging details" - echo "Or perhaps you might print out some debugging details"
- dotnet restore --ignore-failed-sources - dotnet restore
after_script: after_script:
- echo "After script section" - echo "After script section"
@ -45,7 +45,7 @@ deploy:
script: script:
- dotnet pack -c Release - 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 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/Release/*.nupkg" --source gitlab - dotnet nuget push "src/*/bin/Release/*.nupkg" --source gitlab
only: only:
- master - master