25 lines
500 B
YAML
25 lines
500 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: default
|
||
|
|
||
|
workspace:
|
||
|
path: /build
|
||
|
|
||
|
steps:
|
||
|
- name: test
|
||
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||
|
commands:
|
||
|
- dotnet build -c Release
|
||
|
- dotnet test -c Release
|
||
|
|
||
|
- name: deploy
|
||
|
image: mcr.microsoft.com/dotnet/core/sdk:3.1
|
||
|
environment:
|
||
|
API_KEY:
|
||
|
from_secret: API_KEY
|
||
|
commands:
|
||
|
- dotnet nuget push /build/Bonk/bin/Release/MoonTools.Bonk.*.nupkg -s https://api.nuget.org/v3/index.json -k $API_KEY
|
||
|
when:
|
||
|
ref:
|
||
|
- refs/tags/*.*.*
|