From 1ede337565830b42cd206d70ee9aafdf3f01b9a7 Mon Sep 17 00:00:00 2001 From: Leon Hoppe Date: Sun, 22 Dec 2024 19:23:22 +0100 Subject: [PATCH] Updated ci pipeline --- .gitlab-ci.yml | 7 ++++--- HopFrame.sln.DotSettings.user | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8ae244..47ff617 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,9 +26,10 @@ test: publish: stage: publish script: - - dotnet pack -c Release -o . + - export VERSION=$(echo $CI_COMMIT_TAG | sed 's/^v//') + - dotnet pack -c Release -o . /p:Version=$VERSION - for nupkg in *.nupkg; do dotnet nuget push $nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json; done only: - - main - variables: + - tags + variables: NUGET_API_KEY: $NUGET_API_KEY diff --git a/HopFrame.sln.DotSettings.user b/HopFrame.sln.DotSettings.user index 12afe51..ae702c9 100644 --- a/HopFrame.sln.DotSettings.user +++ b/HopFrame.sln.DotSettings.user @@ -79,6 +79,7 @@ + \ No newline at end of file