mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
a02e6c64f1
* Since we going to move from Travis to CircleCI we don't want to use the dashboard anymore. Since nobody has been looking at the dashboard frequently, it just makes things more complicated and additionally we will be using the Github robot in order to keep track of size changes.
27 lines
825 B
Bash
Executable File
27 lines
825 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script that runs in the deploy stage after the testing stage of Travis passed.
|
|
# Build artifacts and docs content will be published to different repositories.
|
|
|
|
# The script should immediately exit if any command in the script fails.
|
|
set -e
|
|
|
|
# Go to the project root directory
|
|
cd $(dirname $0)/../..
|
|
|
|
# Load the retry-call utility function.
|
|
source scripts/retry-call.sh
|
|
|
|
# Variable the specifies how often the deploy script should be invoked if it fails.
|
|
DEPLOY_RETRIES=1
|
|
|
|
echo ""
|
|
echo "Starting the deployment script. Running mode: ${DEPLOY_MODE}"
|
|
echo ""
|
|
|
|
if [[ "${DEPLOY_MODE}" == "build-artifacts" ]]; then
|
|
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/publish-build-artifacts.sh
|
|
elif [[ "${DEPLOY_MODE}" == "docs-content" ]]; then
|
|
retryCall ${DEPLOY_RETRIES} ./scripts/deploy/publish-docs-content.sh
|
|
fi
|