forked from jorik041/Blazor.SignaturePad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yml
33 lines (26 loc) · 904 Bytes
/
build.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
# Copyright (c) 2020 Allan Mobley. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
# Specify a particular version of the .NET SDK
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.200
installationPath: $(Agent.ToolsDirectory)/dotnet
# Build samples. Not strictly required to create the package,
# but we want the pipeline to halt if these steps fail.
- script: dotnet build --configuration Release
workingDirectory: samples/Blazorwasm
displayName: Build Wasm Sample
- script: dotnet build --configuration Release
workingDirectory: samples/Blazorserver
displayName: Build Server Sample
# Create the NuGet package file
- script: dotnet pack --configuration Release
workingDirectory: src
displayName: Pack