more drone config
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
035e7b1a1c
commit
c101598872
16
.drone.yml
16
.drone.yml
|
@ -2,8 +2,20 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
path: /build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: test
|
||||||
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||||||
commands:
|
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/**
|
||||||
|
|
Loading…
Reference in New Issue