-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
43 lines (34 loc) · 1.3 KB
/
azure-pipelines.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
# ASP.NET Core
# Build and test ASP.NET Core web applications targeting .NET Core.
# Add steps that run tests, create a NuGet package, deploy, and more:
# https://docs.microsoft.com/vsts/pipelines/languages/dotnet-core
variables:
BuildConfiguration: 'Release'
steps:
- task: DotNetCoreInstaller@0
displayName: 'Use .NET Core sdk 3.1.200'
inputs:
version: 3.1.200
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '*[Tt]ests/*.csproj'
arguments: '-c $(BuildConfiguration) -f netcoreapp3.1'
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
projects: VkNet/VkNet.csproj
arguments: '-o $(Build.ArtifactStagingDirectory) -c $(BuildConfiguration) --version-suffix $(Build.BuildId)'
- script: 'dotnet nuget push *.nupkg -k $(Parameters.MyGetKey) -s $(Parameters.MyGetFeed)'
workingDirectory: '$(Build.ArtifactStagingDirectory)'
displayName: 'Command Line Script'
- task: EvgenyChernyi.telegram-notification-extension.sample-telegram-task.SendTelegramNotification@0
displayName: 'Send Telegram Notification'
inputs:
botToken: '$(Parameters.botToken)'
chats: '$(Parameters.chats)'
message: '<code>Reason: $(Build.Reason)
Build №: $(Build.BuildNumber)
VkNet был успешно собран!</code>'
buildQueuedBy: true