1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 20:38:58 +03:00

docs: alias docs to now.json "alias" field on master

This commit is contained in:
Shawn Allen 2019-01-15 11:35:38 -08:00
parent efeff9697c
commit a5658d306f

View File

@ -37,7 +37,11 @@ else
branch=$TRAVIS_BRANCH
fi
alias="primer-css-${branch//\./-}.now.sh"
if [[ "$branch" = "master" ]]; then
alias=$(jq -r .alias now.json)
else
alias="primer-css-${branch//\./-}.now.sh"
fi
echo "aliasing to '$alias'..."
now $now_args alias $url $alias
npx commit-status success docs "v$version docs: $alias" "https://$alias"