-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
49 lines (44 loc) · 1005 Bytes
/
.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
46
47
48
49
---
kind: pipeline
type: docker
name: Build
steps:
- name: formatter
image: mcr.microsoft.com/powershell:alpine-3.14
commands:
- pwsh ./Invoke-Formatter.ps1 -exitCodeOnFormat
environment:
# Disable debugging and profiling
COMPlus_EnableDiagnostics: 0
- name: formatter-diff
image: mcr.microsoft.com/powershell:alpine-3.14
commands:
- apk add --no-cache ca-certificates git
- git diff
when:
status:
- failure
- name: linter
image: mcr.microsoft.com/powershell:alpine-3.14
commands:
- pwsh ./Invoke-Linter.ps1 -exitCodeOnError
environment:
# Disable debugging and profiling
COMPlus_EnableDiagnostics: 0
- name: publish
image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
commands:
- pwsh ./Publish-WebKitDev.ps1
environment:
NUGET_API_KEY:
from_secret: nuget_api_key
# Disable debugging and profiling
COMPlus_EnableDiagnostics: 0
when:
event:
- tag
trigger:
ref:
- refs/heads/master
- refs/tags/**
- refs/pull/**