encompass-cs/.drone.yml

25 lines
621 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
2021-01-30 00:22:33 +00:00
image: docker pull mcr.microsoft.com/dotnet/runtime:5.0
2020-03-18 00:47:39 +00:00
commands:
- dotnet build -c Release
- dotnet test -c Release
- name: deploy
2021-01-30 00:22:33 +00:00
image: docker pull mcr.microsoft.com/dotnet/runtime:5.0
2020-03-18 00:47:39 +00:00
environment:
API_KEY:
from_secret: API_KEY
commands:
2021-01-30 00:22:33 +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/*.*.*