1
1
mirror of https://github.com/primer/css.git synced 2024-12-18 11:41:33 +03:00
css/script/build-docs
2018-12-17 15:26:50 -08:00

13 lines
327 B
Bash
Executable File

#!/bin/bash
set -e
if [ -z "$NOW_TOKEN" ]; then
echo "NOW_TOKEN is not set; skipping docs deployment"
else
cd docs
now --token=$NOW_TOKEN > now-url.txt
url=$(cat now-url.txt)
version=$(jq -r .name ../modules/primer/package.json)
npx commit-status "deployed to <$url>" "now" "primer@$version" "$url"
fi