diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..077b7e7 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: mcr.microsoft.com/dotnet/core/sdk:2.1 +stages: + - test + - deploy + +nullsharp-test: + stage: test + before_script: + - dotnet restore + script: + - dotnet test NullSharpTests + +nullsharp-deploy: + stage: deploy + only: + - master@Lucidiot/NullSharp + when: manual + script: + - dotnet pack -c Release + - find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -n1 dotnet nuget push -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY diff --git a/NullSharp/NullSharp.csproj b/NullSharp/NullSharp.csproj index 20e696c..edff068 100644 --- a/NullSharp/NullSharp.csproj +++ b/NullSharp/NullSharp.csproj @@ -9,7 +9,7 @@ Lucidiot Lucidiot API client for /dev/null As A Service. - https://gitlab.com/Lucidiot/NullSharp/blob/master/LICENSE + AGPL-3.0-or-later git https://gitlab.com/Lucidiot/NullSharp