forked from Tinkoff/Allure.XUnit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
45 lines (41 loc) · 1.07 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
45
kind: pipeline
name: default
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk
commands:
- cd src
- dotnet build Allure.XUnit.sln -c Release
- name: allure_xunit_push
image: mcr.microsoft.com/dotnet/sdk
environment:
NUGET_APIKEY:
from_secret: NUGET_API
commands:
- cd src
- dotnet pack Allure.XUnit/Allure.XUnit.csproj -c Release /p:PackageVersion=${DRONE_TAG##core-}
- dotnet nuget push **/Allure.XUnit.*.nupkg -k $NUGET_APIKEY -s https://www.nuget.org
when:
event:
- tag
ref:
- refs/tags/core-*
- name: step_extensions_push
image: mcr.microsoft.com/dotnet/sdk
environment:
NUGET_APIKEY:
from_secret: STEP_EXTENSIONS_NUGET_API
commands:
- cd src
- dotnet pack Allure.Xunit.StepExtensions/Allure.Xunit.StepExtensions.csproj -c Release /p:PackageVersion=${DRONE_TAG##step-extensions-}
- dotnet nuget push **/Allure.Xunit.StepExtensions.*.nupkg -k $NUGET_APIKEY -s https://www.nuget.org
when:
event:
- tag
ref:
- refs/tags/step-extensions-*
trigger:
event:
- pull_request
- push
- tag