Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
d3d992fa3c
commit
70c4a4dd33
@ -15,25 +15,31 @@ steps:
|
||||
versionSpec: '12.x'
|
||||
displayName: 'Install Node.js'
|
||||
|
||||
- script: |
|
||||
# npm install -g @angular/cli
|
||||
npm install -g @ionic/cli
|
||||
npm install
|
||||
ionic build --prod
|
||||
displayName: 'npm install and build'
|
||||
|
||||
# # Archive files
|
||||
- task: ArchiveFiles@2
|
||||
- task: CmdLine@2
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.BinariesDirectory)'
|
||||
includeRootFolder: true
|
||||
archiveType: 'tar'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
||||
replaceExistingArchive: true
|
||||
verbose: true
|
||||
script: |
|
||||
echo $(Build.Repository.LocalPath)
|
||||
$(Build.Repository.LocalPath)
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||||
ArtifactName: 'Front'
|
||||
publishLocation: 'Container'
|
||||
|
||||
# - script: |
|
||||
# npm install -g @ionic/cli
|
||||
# npm install
|
||||
# ionic build --prod
|
||||
# displayName: 'npm install and build'
|
||||
|
||||
# # # Archive files
|
||||
# - task: ArchiveFiles@2
|
||||
# inputs:
|
||||
# rootFolderOrFile: '$(Build.BinariesDirectory)'
|
||||
# includeRootFolder: true
|
||||
# archiveType: 'tar'
|
||||
# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
||||
# replaceExistingArchive: true
|
||||
# verbose: true
|
||||
|
||||
# - task: PublishBuildArtifacts@1
|
||||
# inputs:
|
||||
# PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||||
# ArtifactName: 'Front'
|
||||
# publishLocation: 'Container'
|
Loading…
Reference in New Issue
Block a user