-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines-ui.yml
33 lines (30 loc) · 1 KB
/
azure-pipelines-ui.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
#trigger:
#- master
pool:
vmImage: windows-2022
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
stages:
- stage: build_and_deploy_blazor_app
displayName: 'Build blazor app and deploy it'
jobs:
- job: build_and_deploy
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 8.x
installationPath: $(Agent.ToolsDirectory)/dotnet
- script: dotnet build --configuration $(buildConfiguration) src/BlazorApp/BlazorApp.csproj
displayName: 'Building $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'Publishing App'
inputs:
command: publish
publishWebProjects: true
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: false
- task: PublishBuildArtifacts@1
displayName: 'Publishing Build Artifacts'