-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yaml
41 lines (35 loc) · 957 Bytes
/
azure-pipelines.yaml
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
trigger:
branches:
include:
- master
paths:
exclude:
# Exclude README.md from triggering content deployments
- README.md
pool:
vmImage: "windows-latest"
steps:
- task: DotNetCoreCLI@2
displayName: 'Build Blazor Project'
inputs:
command: build
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: 'Publish'
inputs:
command: publish
arguments: '--configuration Release --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: false
- task: PublishBuildArtifacts@1
displayName: "Upload Artifacts"
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'drop'
- task: AzureFileCopy@3
displayName: "Copy the bundle to pwa Storage Account"
inputs:
SourcePath: "$(Build.ArtifactStagingDirectory)/s/wwwroot"
azureSubscription: "your-service-connection"
Destination: "AzureBlob"
storage: "yourblobstorage"
ContainerName: "$web"