mirror of
https://github.com/primer/css.git
synced 2024-12-02 07:53:06 +03:00
14 lines
398 B
Bash
Executable File
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
|