From 4fa03c5a1d1129dee87ad112f5e998c84d8f9ff1 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 14 Jun 2021 00:46:09 +0100 Subject: [PATCH] link warn & deploy to gitlab --- .gitlab-ci.yml | 9 +++++++++ src/nuget-cli/nuget-cli.csproj | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7cf4b42..aef8835 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,6 +40,15 @@ publish: script: - dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources +deploy: + stage: deploy + script: + - 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/Release/*.nupkg" --source gitlab + only: + - master + pack: stage: deploy artifacts: diff --git a/src/nuget-cli/nuget-cli.csproj b/src/nuget-cli/nuget-cli.csproj index 6e4aa77..7ab2a21 100644 --- a/src/nuget-cli/nuget-cli.csproj +++ b/src/nuget-cli/nuget-cli.csproj @@ -8,7 +8,7 @@ - +