mirror of
https://github.com/primer/css.git
synced 2024-11-30 01:04:04 +03:00
22 lines
385 B
Bash
Executable File
22 lines
385 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
branch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
|
|
echo "[deploy] branch = '$branch'"
|
|
|
|
if [[ "$@" = "--dry-run" ]]; then
|
|
args="--skip-git --skip-npm"
|
|
else
|
|
args=$@
|
|
fi
|
|
|
|
if [[ "$branch" = master ]]; then
|
|
script/release $args
|
|
elif [[ "$branch" =~ ^release- ]]; then
|
|
script/release-candidate $args
|
|
else
|
|
script/release-pr $args
|
|
fi
|
|
|
|
script/deploy-docs
|