37 lines
580 B
YAML
37 lines
580 B
YAML
image: mcr.microsoft.com/dotnet/sdk
|
|
|
|
variables:
|
|
LANG: "de"
|
|
TZ: "Europe/Berlin"
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- publish
|
|
|
|
build:
|
|
stage: build
|
|
tags:
|
|
- 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
|