encompass-cs/.drone.yml

25 lines
621 B
YAML

kind: pipeline
type: docker
name: default
workspace:
path: /build
steps:
- name: test
image: docker pull mcr.microsoft.com/dotnet/runtime:5.0
commands:
- dotnet build -c Release
- dotnet test -c Release
- name: deploy
image: docker pull mcr.microsoft.com/dotnet/runtime:5.0
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
when:
ref:
- refs/tags/*.*.*