ci(aio): deploy previews early (right after build) (#16734)
Previously, PR previews were deployed after successfully running all tests. While this makes sense for staging/production deployments, previews should be available as soon as possible (and regardless of the outcome of tests). Fixes #16705
This commit is contained in:

committed by
Igor Minar

parent
decb4cc4a3
commit
fdfeaaf1f3
@ -51,10 +51,7 @@ case ${CI_MODE} in
|
||||
cd ${TRAVIS_BUILD_DIR}/aio
|
||||
|
||||
if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then
|
||||
# This is a PR: deploy a snapshot for previewing (if preconditions met)
|
||||
travisFoldStart "deploy.aio.pr-preview"
|
||||
yarn deploy-preview
|
||||
travisFoldEnd "deploy.aio.pr-preview"
|
||||
# This is a PR: It has already been deployed in `build.sh`.
|
||||
else
|
||||
# This is upstream master: Deploy to staging
|
||||
travisFoldStart "deploy.aio.staging"
|
||||
|
Reference in New Issue
Block a user