Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Thomas 2020-02-08 06:08:08 +00:00
parent d3d992fa3c
commit 70c4a4dd33

View File

@ -15,25 +15,31 @@ steps:
versionSpec: '12.x' versionSpec: '12.x'
displayName: 'Install Node.js' displayName: 'Install Node.js'
- script: | - task: CmdLine@2
# 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
inputs: inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)' script: |
includeRootFolder: true echo $(Build.Repository.LocalPath)
archiveType: 'tar' $(Build.Repository.LocalPath)
archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
replaceExistingArchive: true
verbose: true
- task: PublishBuildArtifacts@1
inputs: # - script: |
PathtoPublish: '$(Build.ArtifactStagingDirectory)' # npm install -g @ionic/cli
ArtifactName: 'Front' # npm install
publishLocation: 'Container' # 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'