From aed79ef0489bfb5d83d8378c0a34118a58635618 Mon Sep 17 00:00:00 2001 From: Japheth Obala Date: Wed, 6 May 2020 11:08:03 +0300 Subject: [PATCH] FIx: Build static assets for master & dev (#498) * Build static assets for master & dev * Build prod assets with prod client id * Fix typo * Fix typo in yml --- azure-pipelines.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a51ebecd1..e8866fe85 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,7 +24,14 @@ steps: condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev')) env: REACT_APP_CLIENT_ID: $(REACT_APP_STAGING_CLIENT_ID) - displayName: 'Build staging assets' + displayName: 'Build static assets for staging' + + - script: | + npm run build + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) + env: + REACT_APP_CLIENT_ID: $(REACT_APP_PROD_CLIENT_ID) + displayName: 'Build static assets for prod' - task: PublishCodeCoverageResults@1 inputs: