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
|
2020-02-20 22:52:03 +00:00
|
|
|
environment:
|
|
|
|
API_KEY:
|
|
|
|
from_secret: API_KEY
|
2020-02-20 22:05:42 +00:00
|
|
|
commands:
|
2020-02-20 22:52:03 +00:00
|
|
|
- dotnet nuget push /build/Structs/bin/Release/MoonTools.Core.Structs.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
|
2020-02-20 22:37:22 +00:00
|
|
|
when:
|
|
|
|
ref:
|
2020-02-20 22:39:18 +00:00
|
|
|
- refs/tags/*.*.*
|