diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9b68d7f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +image: mcr.microsoft.com/dotnet/sdk:9.0 + +stages: + - build + - test + - publish + +before_script: + - echo "Setting up environment" + - 'dotnet --version' + +build: + stage: build + script: + - dotnet restore + - dotnet build --configuration Release --no-restore + artifacts: + paths: + - "**/bin/Release" + expire_in: 10 minutes + +test: + stage: test + script: + - dotnet test --verbosity normal + dependencies: + - build + +publish: + stage: 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 + only: + - tags + dependencies: + - build + - test diff --git a/.idea/.idea.HopFrame/.idea/workspace.xml b/.idea/.idea.HopFrame/.idea/workspace.xml index 0705f65..09e7fe9 100644 --- a/.idea/.idea.HopFrame/.idea/workspace.xml +++ b/.idea/.idea.HopFrame/.idea/workspace.xml @@ -9,17 +9,33 @@