Skip to content
Permalink
Browse files

fix: update build pipeline to publish artifacts

  • Loading branch information...
raisedadead committed Apr 1, 2019
1 parent ce02e27 commit e5d0597f3e613c9e1d359d186557b6076d8f3434
Showing with 13 additions and 9 deletions.
  1. +13 −9 azure-pipelines.yml
@@ -3,6 +3,7 @@ trigger:
branches:
include:
- production-*

pr: none

pool:
@@ -11,16 +12,16 @@ pool:

steps:
- task: NodeTool@0
displayName: 'Use Node 10.x'
displayName: Use Node 10.x
inputs:
versionSpec: 10.x

- script: npm ci
displayName: 'Install npm dependencies'
displayName: Install npm dependencies

- script: npm run build
displayName: Build the client
workingDirectory: client
displayName: 'Build the client'
env:
NODE_ENV: production
LOCALE: $(LOCALE)
@@ -30,14 +31,17 @@ steps:
ROLLBAR_CLIENT_ID: $(ROLLBAR_CLIENT_ID)
STRIPE_PUBLIC_KEY: $(STRIPE_PUBLIC_KEY)

- task: CopyFiles@2
displayName: 'Copy build to staging area'
- task: ArchiveFiles@2
displayName: Create archive file
inputs:
contents: 'public\**'
targetFolder: $(Build.ArtifactStagingDirectory)
rootFolderOrFile: '$(Agent.BuildDirectory)/s/client/public'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true

- task: PublishBuildArtifacts@1
displayName: 'Publish build artificats'
displayName: Publish archive file
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: dev-build
artifactName: build-archive

0 comments on commit e5d0597

Please sign in to comment.
You can’t perform that action at this time.