Skip to content

Commit

Permalink
FIx: Build static assets for master & dev (#498)
Browse files Browse the repository at this point in the history
* Build static assets for master & dev

* Build prod assets with prod client id

* Fix typo

* Fix typo in yml
  • Loading branch information
jobala committed May 6, 2020
1 parent c490a94 commit aed79ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit aed79ef

Please sign in to comment.