-
Notifications
You must be signed in to change notification settings - Fork 9
/
.drone.yml
44 lines (40 loc) · 1.27 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
kind: pipeline
type: docker
name: default
steps:
- name: build-patch-match
image: microsoft/dotnet:2.0-sdk
commands:
- dotnet build PatchMatch -c Release
when:
event: [push]
- name: build-parallel
image: microsoft/dotnet:2.0-sdk
commands:
- dotnet build Parallel -c Release
when:
event: [push]
- name: publish-patch-match-nuget
image: microsoft/dotnet:2.0-sdk
environment:
NUGETKEY:
from_secret: NUGET_KEY
commands:
- dotnet build PatchMatch -c Release
- dotnet pack PatchMatch -c Release -p:PackageVersion=$${DRONE_TAG}
- dotnet nuget push PatchMatch/bin/Release/Zavolokas.ImageProcessing.PatchMatch.$${DRONE_TAG}.nupkg -s https://api.nuget.org/v3/index.json -k $${NUGETKEY}
when:
event: [tag]
branch: [master]
- name: publish-parallel-nuget
image: microsoft/dotnet:2.0-sdk
environment:
NUGETKEY:
from_secret: NUGET_KEY
commands:
- dotnet build Parallel -c Release
- dotnet pack Parallel -c Release -p:PackageVersion=$${DRONE_TAG}
- dotnet nuget push Parallel/bin/Release/Zavolokas.ImageProcessing.Parallel.$${DRONE_TAG}.nupkg -s https://api.nuget.org/v3/index.json -k $${NUGETKEY}
when:
event: [tag]
branch: [master]