mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Now instead of pushing the AIO build artifacts to the preview server from inside a Travis job, the artifacts are built and hosted on the CircleCI infrastructure. The preview server will then pull these down after being triggered by a CircleCI build webhook.
16 lines
334 B
Bash
Executable file
16 lines
334 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
source "`dirname $0`/../../scripts/ci/env.sh" print
|
|
|
|
readonly INPUT_DIR=dist/
|
|
readonly OUTPUT_FILE=$PROJECT_ROOT/$1
|
|
(
|
|
cd $PROJECT_ROOT/aio
|
|
|
|
# Build and store the app
|
|
yarn build
|
|
mkdir -p "`dirname $OUTPUT_FILE`"
|
|
tar --create --gzip --directory "$INPUT_DIR" --file "$OUTPUT_FILE" .
|
|
)
|