1
1
mirror of https://github.com/primer/css.git synced 2025-01-01 18:53:34 +03:00

do branch urls better, derp

This commit is contained in:
Shawn Allen 2018-12-21 13:19:12 -08:00
parent 0e90ca80cf
commit 9b4caa84a0

View File

@ -12,7 +12,12 @@ else
url=$(cat now-url.txt)
version=$(jq -r .version ../modules/primer/package.json)
npx commit-status success docs "deployed primer@$version to $url" "$url"
alias="primer-css-$TRAVIS_PULL_REQUEST_BRANCH.now.sh"
if [[ $TRAVIS_EVENT_TYPE = "pull_request" ]]; then
branch=$TRAVIS_PULL_REQUEST_BRANCH
else
branch=$TRAVIS_BRANCH
fi
alias="primer-css-$branch.now.sh"
echo "aliasing..."
$now alias $url $alias
url="https://$alias"