1
1
mirror of https://github.com/primer/css.git synced 2024-12-28 00:24:36 +03:00
css/script/deploy
2019-01-08 13:38:38 -08:00

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