Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
9a383d7429
commit
4720536428
@ -10,10 +10,16 @@ pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
steps:
|
||||
# - task: NodeTool@0
|
||||
# inputs:
|
||||
# versionSpec: '12.x'
|
||||
# displayName: 'Install Node.js'
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '12.x'
|
||||
displayName: 'Install Node.js'
|
||||
|
||||
- script: |
|
||||
npm install -g @ionic/cli
|
||||
npm install
|
||||
ionic build --prod
|
||||
displayName: 'npm install and build'
|
||||
|
||||
- task: CmdLine@2
|
||||
inputs:
|
||||
@ -21,25 +27,18 @@ steps:
|
||||
echo $(Build.Repository.LocalPath)
|
||||
ls -la $(Build.Repository.LocalPath)
|
||||
|
||||
# # Archive files
|
||||
- task: ArchiveFiles@2
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.Repository.LocalPath)/www'
|
||||
includeRootFolder: true
|
||||
archiveType: 'tar'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
||||
replaceExistingArchive: true
|
||||
verbose: true
|
||||
|
||||
# - 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'
|
||||
- task: PublishPipelineArtifact@1
|
||||
inputs:
|
||||
targetPath: '$(Pipeline.Workspace)'
|
||||
artifact: 'FrontEnd'
|
||||
publishLocation: 'pipeline'
|
Loading…
Reference in New Issue
Block a user