reworked ci pipeline

This commit is contained in:
2024-12-22 20:30:40 +01:00
parent 8db38183c2
commit 20b82245d0

View File

@@ -31,11 +31,9 @@ publish:
script:
- 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
- for nupkg in *.nupkg; do dotnet nuget push $nupkg -k ${NUGET_API_KEY} -s https://api.nuget.org/v3/index.json; done
only:
- tags
dependencies:
- build
- test
variables:
NUGET_API_KEY: $NUGET_API_KEY