From c1015988720d5b2ae7cfad6db1705c7b67d16528 Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Thu, 20 Feb 2020 14:37:22 -0800 Subject: [PATCH] more drone config --- .drone.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index dd44bc8..4945056 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,8 +2,20 @@ kind: pipeline type: docker name: default +workspace: + path: /build + steps: -- name: build +- name: test image: mcr.microsoft.com/dotnet/core/sdk:3.1 commands: - - dotnet build + - dotnet build -c Release + - dotnet test -c Release + +- name: deploy + image: mcr.microsoft.com/dotnet/core/sdk:3.1 + commands: + - dotnet nuget push /build/bin/Release/MoonTools.Core.Structs.*.nupkg -k $API_KEY -s https://api.nuget.org/v3/index.json + when: + ref: + -refs/tags/**