Created
July 26, 2021 19:31
-
-
Save Piotr1215/a3bebf6b6e4cf2c32e9f7c0f58e345b1 to your computer and use it in GitHub Desktop.
azure pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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