1
1
mirror of https://github.com/primer/css.git synced 2024-12-02 07:53:06 +03:00
css/script/build-docs
2018-12-17 15:26:50 -08:00

14 lines
398 B
Bash
Executable File

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