Skip to content

Instantly share code, notes, and snippets.

@Piotr1215
Created July 26, 2021 19:31
Show Gist options
  • Save Piotr1215/a3bebf6b6e4cf2c32e9f7c0f58e345b1 to your computer and use it in GitHub Desktop.
Save Piotr1215/a3bebf6b6e4cf2c32e9f7c0f58e345b1 to your computer and use it in GitHub Desktop.
azure pipeline
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment