mirror of
https://github.com/primer/css.git
synced 2024-12-18 19:51:37 +03:00
15 lines
418 B
Bash
Executable File
15 lines
418 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
|
|
npm run prepare
|
|
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
|