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:
parent
efeff9697c
commit
a5658d306f
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user