2020-03-18 00:47:39 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
path: /build
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
2021-01-30 00:36:42 +00:00
|
|
|
image: mcr.microsoft.com/dotnet/sdk:5.0.102-ca-patch-buster-slim
|
2020-03-18 00:47:39 +00:00
|
|
|
commands:
|
|
|
|
- dotnet build -c Release
|
|
|
|
- dotnet test -c Release
|
|
|
|
|
|
|
|
- name: deploy
|
2021-01-30 00:36:42 +00:00
|
|
|
image: mcr.microsoft.com/dotnet/sdk:5.0.102-ca-patch-buster-slim
|
2020-03-18 00:47:39 +00:00
|
|
|
environment:
|
|
|
|
API_KEY:
|
|
|
|
from_secret: API_KEY
|
|
|
|
commands:
|
2021-01-30 00:36:42 +00:00
|
|
|
- dotnet nuget push /build/encompass-cs/bin/Release/EncompassECS.Framework.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
|
2020-03-18 00:47:39 +00:00
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/tags/*.*.*
|