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