1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 01:04:04 +03:00

deploy it!

This commit is contained in:
Shawn Allen 2018-12-04 22:32:49 -08:00
parent c2f0c4bf3e
commit 2700bd6a90

View File

@ -1,8 +1,12 @@
#!/bin/sh
#!/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 --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