-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
48 lines (38 loc) · 1.17 KB
/
azure-pipelines.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Node.js with Angular
# Build a Node.js project that uses Angular.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'windows-2019'
variables:
buildConfiguration: 'Release'
steps:
- task: Npm@1
displayName: 'npm install'
inputs:
command: install
workingDir: ""
- task: Npm@1
displayName: 'Build Angular'
inputs:
command: custom
customCommand: run build -- --prod
workingDir: ""
- task: AzureCLI@1
inputs:
connectedServiceNameARM: 'Visual Studio Enterprise(6bba67a2-8699-485b-852b-41f1de66d12c)'
scriptLocation: 'inlineScript'
inlineScript: 'az storage blob delete-batch --account-name parkerbibusportfolio --source $web'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'angular/parkerbibusportfolio'
targetPath: 'dist'
- task: AzureFileCopy@3
inputs:
SourcePath: 'dist/parker-bibus-portfolio'
ConnectedServiceNameARM: 'Visual Studio Enterprise(6bba67a2-8699-485b-852b-41f1de66d12c)'
Destination: 'AzureBlob'
StorageAccountRM: 'parkerbibusportfolio'
ContainerName: '$web'