diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd6a3ce..46700f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,13 @@ image: mcr.microsoft.com/dotnet/sdk +variables: + LANG: "de" + TZ: "Europe/Berlin" + stages: - build + - test + - publish build: stage: build @@ -9,4 +15,22 @@ build: - docker script: - bash build.sh + artifacts: + paths: + - artifacts/*.nupkg + - artifacts/*.snupkg + expire_in: 1 day + +test: + stage: test + tags: + - docker + script: + - dotnet test -c Release + +publish: + stage: publish + tags: + - docker + script: - dotnet nuget push -k $APIKEY -s https://nuget.am-wd.de/v3/index.json --skip-duplicate artifacts/*.nupkg