encompass-cs/.drone.yml

25 lines
639 B
YAML
Raw Normal View History

2020-03-18 00:47:39 +00:00
kind: pipeline
type: docker
name: default
workspace:
path: /build
steps:
- name: test
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
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:
- 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/*.*.*