2020-02-20 22:05:42 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2020-02-20 22:37:22 +00:00
|
|
|
workspace:
|
|
|
|
path: /build
|
|
|
|
|
2020-02-20 22:05:42 +00:00
|
|
|
steps:
|
2020-02-20 22:37:22 +00:00
|
|
|
- name: test
|
|
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
|
|
|
commands:
|
|
|
|
- dotnet build -c Release
|
|
|
|
- dotnet test -c Release
|
|
|
|
|
|
|
|
- name: deploy
|
2020-02-20 22:05:42 +00:00
|
|
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
|
|
|
commands:
|
2020-02-20 22:37:22 +00:00
|
|
|
- dotnet nuget push /build/bin/Release/MoonTools.Core.Structs.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json
|
|
|
|
when:
|
|
|
|
ref:
|
2020-02-20 22:39:18 +00:00
|
|
|
- refs/tags/*.*.*
|